@pie-element/math-inline 10.0.1-esmbeta.0 → 10.0.1-esmbeta.1
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/configure/package.json +1 -1
- package/controller/package.json +1 -1
- package/esm/configure.js +2276 -329
- package/esm/configure.js.map +1 -1
- package/module/index.html +1 -1
- package/module/manifest.json +1 -1
- package/module/print.html +1 -1
- package/package.json +2 -2
package/esm/configure.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import * as React$1 from 'react';
|
|
2
|
-
import React__default from 'react';
|
|
3
1
|
import { InputContainer, layout, FeedbackConfig, settings } from '@pie-lib/config-ui';
|
|
4
2
|
import EditableHtml from '@pie-lib/editable-html';
|
|
5
3
|
import { MathToolbar } from '@pie-lib/math-toolbar';
|
|
@@ -46,99 +44,2163 @@ function getAugmentedNamespace(n) {
|
|
|
46
44
|
return a;
|
|
47
45
|
}
|
|
48
46
|
|
|
49
|
-
var
|
|
47
|
+
var react = {exports: {}};
|
|
48
|
+
|
|
49
|
+
var react_production_min = {};
|
|
50
|
+
|
|
51
|
+
/*
|
|
52
|
+
object-assign
|
|
53
|
+
(c) Sindre Sorhus
|
|
54
|
+
@license MIT
|
|
55
|
+
*/
|
|
56
|
+
/* eslint-disable no-unused-vars */
|
|
57
|
+
var getOwnPropertySymbols$1 = Object.getOwnPropertySymbols;
|
|
58
|
+
var hasOwnProperty$b = Object.prototype.hasOwnProperty;
|
|
59
|
+
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
60
|
+
|
|
61
|
+
function toObject(val) {
|
|
62
|
+
if (val === null || val === undefined) {
|
|
63
|
+
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
return Object(val);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function shouldUseNative() {
|
|
70
|
+
try {
|
|
71
|
+
if (!Object.assign) {
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// Detect buggy property enumeration order in older V8 versions.
|
|
76
|
+
|
|
77
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
78
|
+
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
79
|
+
test1[5] = 'de';
|
|
80
|
+
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
85
|
+
var test2 = {};
|
|
86
|
+
for (var i = 0; i < 10; i++) {
|
|
87
|
+
test2['_' + String.fromCharCode(i)] = i;
|
|
88
|
+
}
|
|
89
|
+
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
90
|
+
return test2[n];
|
|
91
|
+
});
|
|
92
|
+
if (order2.join('') !== '0123456789') {
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
97
|
+
var test3 = {};
|
|
98
|
+
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
99
|
+
test3[letter] = letter;
|
|
100
|
+
});
|
|
101
|
+
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
102
|
+
'abcdefghijklmnopqrst') {
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
return true;
|
|
107
|
+
} catch (err) {
|
|
108
|
+
// We don't expect any of the above to throw, but better to be safe.
|
|
109
|
+
return false;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
|
|
114
|
+
var from;
|
|
115
|
+
var to = toObject(target);
|
|
116
|
+
var symbols;
|
|
117
|
+
|
|
118
|
+
for (var s = 1; s < arguments.length; s++) {
|
|
119
|
+
from = Object(arguments[s]);
|
|
120
|
+
|
|
121
|
+
for (var key in from) {
|
|
122
|
+
if (hasOwnProperty$b.call(from, key)) {
|
|
123
|
+
to[key] = from[key];
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
if (getOwnPropertySymbols$1) {
|
|
128
|
+
symbols = getOwnPropertySymbols$1(from);
|
|
129
|
+
for (var i = 0; i < symbols.length; i++) {
|
|
130
|
+
if (propIsEnumerable.call(from, symbols[i])) {
|
|
131
|
+
to[symbols[i]] = from[symbols[i]];
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
return to;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
/** @license React v16.14.0
|
|
141
|
+
* react.production.min.js
|
|
142
|
+
*
|
|
143
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
144
|
+
*
|
|
145
|
+
* This source code is licensed under the MIT license found in the
|
|
146
|
+
* LICENSE file in the root directory of this source tree.
|
|
147
|
+
*/
|
|
148
|
+
var l$1=objectAssign,n$2="function"===typeof Symbol&&Symbol.for,p$1=n$2?Symbol.for("react.element"):60103,q$1=n$2?Symbol.for("react.portal"):60106,r$2=n$2?Symbol.for("react.fragment"):60107,t$1=n$2?Symbol.for("react.strict_mode"):60108,u$1=n$2?Symbol.for("react.profiler"):60114,v$2=n$2?Symbol.for("react.provider"):60109,w$2=n$2?Symbol.for("react.context"):60110,x$1=n$2?Symbol.for("react.forward_ref"):60112,y$2=n$2?Symbol.for("react.suspense"):60113,z$1=n$2?Symbol.for("react.memo"):60115,A$1=n$2?Symbol.for("react.lazy"):
|
|
149
|
+
60116,B="function"===typeof Symbol&&Symbol.iterator;function C$1(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return "Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}
|
|
150
|
+
var D={isMounted:function(){return !1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E$1={};function F$1(a,b,c){this.props=a;this.context=b;this.refs=E$1;this.updater=c||D;}F$1.prototype.isReactComponent={};F$1.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error(C$1(85));this.updater.enqueueSetState(this,a,b,"setState");};F$1.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate");};
|
|
151
|
+
function G$1(){}G$1.prototype=F$1.prototype;function H$1(a,b,c){this.props=a;this.context=b;this.refs=E$1;this.updater=c||D;}var I$1=H$1.prototype=new G$1;I$1.constructor=H$1;l$1(I$1,F$1.prototype);I$1.isPureReactComponent=!0;var J$1={current:null},K$1=Object.prototype.hasOwnProperty,L$1={key:!0,ref:!0,__self:!0,__source:!0};
|
|
152
|
+
function M$1(a,b,c){var e,d={},g=null,k=null;if(null!=b)for(e in void 0!==b.ref&&(k=b.ref),void 0!==b.key&&(g=""+b.key),b)K$1.call(b,e)&&!L$1.hasOwnProperty(e)&&(d[e]=b[e]);var f=arguments.length-2;if(1===f)d.children=c;else if(1<f){for(var h=Array(f),m=0;m<f;m++)h[m]=arguments[m+2];d.children=h;}if(a&&a.defaultProps)for(e in f=a.defaultProps,f)void 0===d[e]&&(d[e]=f[e]);return {$$typeof:p$1,type:a,key:g,ref:k,props:d,_owner:J$1.current}}
|
|
153
|
+
function N$1(a,b){return {$$typeof:p$1,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O$1(a){return "object"===typeof a&&null!==a&&a.$$typeof===p$1}function escape(a){var b={"=":"=0",":":"=2"};return "$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}var P$1=/\/+/g,Q$1=[];function R$1(a,b,c,e){if(Q$1.length){var d=Q$1.pop();d.result=a;d.keyPrefix=b;d.func=c;d.context=e;d.count=0;return d}return {result:a,keyPrefix:b,func:c,context:e,count:0}}
|
|
154
|
+
function S$1(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>Q$1.length&&Q$1.push(a);}
|
|
155
|
+
function T$1(a,b,c,e){var d=typeof a;if("undefined"===d||"boolean"===d)a=null;var g=!1;if(null===a)g=!0;else switch(d){case "string":case "number":g=!0;break;case "object":switch(a.$$typeof){case p$1:case q$1:g=!0;}}if(g)return c(e,a,""===b?"."+U$1(a,0):b),1;g=0;b=""===b?".":b+":";if(Array.isArray(a))for(var k=0;k<a.length;k++){d=a[k];var f=b+U$1(d,k);g+=T$1(d,f,c,e);}else if(null===a||"object"!==typeof a?f=null:(f=B&&a[B]||a["@@iterator"],f="function"===typeof f?f:null),"function"===typeof f)for(a=f.call(a),k=
|
|
156
|
+
0;!(d=a.next()).done;)d=d.value,f=b+U$1(d,k++),g+=T$1(d,f,c,e);else if("object"===d)throw c=""+a,Error(C$1(31,"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c,""));return g}function V$1(a,b,c){return null==a?0:T$1(a,"",b,c)}function U$1(a,b){return "object"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function W$1(a,b){a.func.call(a.context,b,a.count++);}
|
|
157
|
+
function aa$1(a,b,c){var e=a.result,d=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?X$1(a,e,c,function(a){return a}):null!=a&&(O$1(a)&&(a=N$1(a,d+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(P$1,"$&/")+"/")+c)),e.push(a));}function X$1(a,b,c,e,d){var g="";null!=c&&(g=(""+c).replace(P$1,"$&/")+"/");b=R$1(b,g,e,d);V$1(a,aa$1,b);S$1(b);}var Y$1={current:null};function Z$1(){var a=Y$1.current;if(null===a)throw Error(C$1(321));return a}
|
|
158
|
+
var ba$1={ReactCurrentDispatcher:Y$1,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:J$1,IsSomeRendererActing:{current:!1},assign:l$1};react_production_min.Children={map:function(a,b,c){if(null==a)return a;var e=[];X$1(a,e,null,b,c);return e},forEach:function(a,b,c){if(null==a)return a;b=R$1(null,null,b,c);V$1(a,W$1,b);S$1(b);},count:function(a){return V$1(a,function(){return null},null)},toArray:function(a){var b=[];X$1(a,b,null,function(a){return a});return b},only:function(a){if(!O$1(a))throw Error(C$1(143));return a}};
|
|
159
|
+
react_production_min.Component=F$1;react_production_min.Fragment=r$2;react_production_min.Profiler=u$1;react_production_min.PureComponent=H$1;react_production_min.StrictMode=t$1;react_production_min.Suspense=y$2;react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ba$1;
|
|
160
|
+
react_production_min.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error(C$1(267,a));var e=l$1({},a.props),d=a.key,g=a.ref,k=a._owner;if(null!=b){void 0!==b.ref&&(g=b.ref,k=J$1.current);void 0!==b.key&&(d=""+b.key);if(a.type&&a.type.defaultProps)var f=a.type.defaultProps;for(h in b)K$1.call(b,h)&&!L$1.hasOwnProperty(h)&&(e[h]=void 0===b[h]&&void 0!==f?f[h]:b[h]);}var h=arguments.length-2;if(1===h)e.children=c;else if(1<h){f=Array(h);for(var m=0;m<h;m++)f[m]=arguments[m+2];e.children=f;}return {$$typeof:p$1,type:a.type,
|
|
161
|
+
key:d,ref:g,props:e,_owner:k}};react_production_min.createContext=function(a,b){void 0===b&&(b=null);a={$$typeof:w$2,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:v$2,_context:a};return a.Consumer=a};react_production_min.createElement=M$1;react_production_min.createFactory=function(a){var b=M$1.bind(null,a);b.type=a;return b};react_production_min.createRef=function(){return {current:null}};react_production_min.forwardRef=function(a){return {$$typeof:x$1,render:a}};react_production_min.isValidElement=O$1;
|
|
162
|
+
react_production_min.lazy=function(a){return {$$typeof:A$1,_ctor:a,_status:-1,_result:null}};react_production_min.memo=function(a,b){return {$$typeof:z$1,type:a,compare:void 0===b?null:b}};react_production_min.useCallback=function(a,b){return Z$1().useCallback(a,b)};react_production_min.useContext=function(a,b){return Z$1().useContext(a,b)};react_production_min.useDebugValue=function(){};react_production_min.useEffect=function(a,b){return Z$1().useEffect(a,b)};react_production_min.useImperativeHandle=function(a,b,c){return Z$1().useImperativeHandle(a,b,c)};
|
|
163
|
+
react_production_min.useLayoutEffect=function(a,b){return Z$1().useLayoutEffect(a,b)};react_production_min.useMemo=function(a,b){return Z$1().useMemo(a,b)};react_production_min.useReducer=function(a,b,c){return Z$1().useReducer(a,b,c)};react_production_min.useRef=function(a){return Z$1().useRef(a)};react_production_min.useState=function(a){return Z$1().useState(a)};react_production_min.version="16.14.0";
|
|
164
|
+
|
|
165
|
+
var react_development = {};
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
169
|
+
*
|
|
170
|
+
* This source code is licensed under the MIT license found in the
|
|
171
|
+
* LICENSE file in the root directory of this source tree.
|
|
172
|
+
*/
|
|
173
|
+
|
|
174
|
+
var ReactPropTypesSecret$3 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
175
|
+
|
|
176
|
+
var ReactPropTypesSecret_1 = ReactPropTypesSecret$3;
|
|
177
|
+
|
|
178
|
+
var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
182
|
+
*
|
|
183
|
+
* This source code is licensed under the MIT license found in the
|
|
184
|
+
* LICENSE file in the root directory of this source tree.
|
|
185
|
+
*/
|
|
186
|
+
|
|
187
|
+
var printWarning$2 = function() {};
|
|
188
|
+
|
|
189
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
190
|
+
var ReactPropTypesSecret$2 = ReactPropTypesSecret_1;
|
|
191
|
+
var loggedTypeFailures = {};
|
|
192
|
+
var has$1 = has$2;
|
|
193
|
+
|
|
194
|
+
printWarning$2 = function(text) {
|
|
195
|
+
var message = 'Warning: ' + text;
|
|
196
|
+
if (typeof console !== 'undefined') {
|
|
197
|
+
console.error(message);
|
|
198
|
+
}
|
|
199
|
+
try {
|
|
200
|
+
// --- Welcome to debugging React ---
|
|
201
|
+
// This error was thrown as a convenience so that you can use this stack
|
|
202
|
+
// to find the callsite that caused this warning to fire.
|
|
203
|
+
throw new Error(message);
|
|
204
|
+
} catch (x) { /**/ }
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Assert that the values match with the type specs.
|
|
210
|
+
* Error messages are memorized and will only be shown once.
|
|
211
|
+
*
|
|
212
|
+
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
213
|
+
* @param {object} values Runtime values that need to be type-checked
|
|
214
|
+
* @param {string} location e.g. "prop", "context", "child context"
|
|
215
|
+
* @param {string} componentName Name of the component for error messages.
|
|
216
|
+
* @param {?Function} getStack Returns the component stack.
|
|
217
|
+
* @private
|
|
218
|
+
*/
|
|
219
|
+
function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
|
|
220
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
221
|
+
for (var typeSpecName in typeSpecs) {
|
|
222
|
+
if (has$1(typeSpecs, typeSpecName)) {
|
|
223
|
+
var error;
|
|
224
|
+
// Prop type validation may throw. In case they do, we don't want to
|
|
225
|
+
// fail the render phase where it didn't fail before. So we log it.
|
|
226
|
+
// After these have been cleaned up, we'll let them throw.
|
|
227
|
+
try {
|
|
228
|
+
// This is intentionally an invariant that gets caught. It's the same
|
|
229
|
+
// behavior as without this statement except with a better message.
|
|
230
|
+
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
231
|
+
var err = Error(
|
|
232
|
+
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
233
|
+
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
234
|
+
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
235
|
+
);
|
|
236
|
+
err.name = 'Invariant Violation';
|
|
237
|
+
throw err;
|
|
238
|
+
}
|
|
239
|
+
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$2);
|
|
240
|
+
} catch (ex) {
|
|
241
|
+
error = ex;
|
|
242
|
+
}
|
|
243
|
+
if (error && !(error instanceof Error)) {
|
|
244
|
+
printWarning$2(
|
|
245
|
+
(componentName || 'React class') + ': type specification of ' +
|
|
246
|
+
location + ' `' + typeSpecName + '` is invalid; the type checker ' +
|
|
247
|
+
'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
|
|
248
|
+
'You may have forgotten to pass an argument to the type checker ' +
|
|
249
|
+
'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
|
|
250
|
+
'shape all require an argument).'
|
|
251
|
+
);
|
|
252
|
+
}
|
|
253
|
+
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
254
|
+
// Only monitor this failure once because there tends to be a lot of the
|
|
255
|
+
// same error.
|
|
256
|
+
loggedTypeFailures[error.message] = true;
|
|
257
|
+
|
|
258
|
+
var stack = getStack ? getStack() : '';
|
|
259
|
+
|
|
260
|
+
printWarning$2(
|
|
261
|
+
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
|
|
262
|
+
);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Resets warning cache when testing.
|
|
271
|
+
*
|
|
272
|
+
* @private
|
|
273
|
+
*/
|
|
274
|
+
checkPropTypes$1.resetWarningCache = function() {
|
|
275
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
276
|
+
loggedTypeFailures = {};
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
var checkPropTypes_1 = checkPropTypes$1;
|
|
281
|
+
|
|
282
|
+
/** @license React v16.14.0
|
|
283
|
+
* react.development.js
|
|
284
|
+
*
|
|
285
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
286
|
+
*
|
|
287
|
+
* This source code is licensed under the MIT license found in the
|
|
288
|
+
* LICENSE file in the root directory of this source tree.
|
|
289
|
+
*/
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
if (process.env.NODE_ENV !== "production") {
|
|
294
|
+
(function() {
|
|
295
|
+
|
|
296
|
+
var _assign = objectAssign;
|
|
297
|
+
var checkPropTypes = checkPropTypes_1;
|
|
298
|
+
|
|
299
|
+
var ReactVersion = '16.14.0';
|
|
300
|
+
|
|
301
|
+
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
302
|
+
// nor polyfill, then a plain number is used for performance.
|
|
303
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
304
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
305
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
306
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
307
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
308
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
309
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
310
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
311
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
312
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
313
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
314
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
315
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
316
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
317
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
318
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
319
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
320
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
321
|
+
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
322
|
+
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
|
323
|
+
function getIteratorFn(maybeIterable) {
|
|
324
|
+
if (maybeIterable === null || typeof maybeIterable !== 'object') {
|
|
325
|
+
return null;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
329
|
+
|
|
330
|
+
if (typeof maybeIterator === 'function') {
|
|
331
|
+
return maybeIterator;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
return null;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Keeps track of the current dispatcher.
|
|
339
|
+
*/
|
|
340
|
+
var ReactCurrentDispatcher = {
|
|
341
|
+
/**
|
|
342
|
+
* @internal
|
|
343
|
+
* @type {ReactComponent}
|
|
344
|
+
*/
|
|
345
|
+
current: null
|
|
346
|
+
};
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Keeps track of the current batch's configuration such as how long an update
|
|
350
|
+
* should suspend for if it needs to.
|
|
351
|
+
*/
|
|
352
|
+
var ReactCurrentBatchConfig = {
|
|
353
|
+
suspense: null
|
|
354
|
+
};
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* Keeps track of the current owner.
|
|
358
|
+
*
|
|
359
|
+
* The current owner is the component who should own any components that are
|
|
360
|
+
* currently being constructed.
|
|
361
|
+
*/
|
|
362
|
+
var ReactCurrentOwner = {
|
|
363
|
+
/**
|
|
364
|
+
* @internal
|
|
365
|
+
* @type {ReactComponent}
|
|
366
|
+
*/
|
|
367
|
+
current: null
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
|
|
371
|
+
function describeComponentFrame (name, source, ownerName) {
|
|
372
|
+
var sourceInfo = '';
|
|
373
|
+
|
|
374
|
+
if (source) {
|
|
375
|
+
var path = source.fileName;
|
|
376
|
+
var fileName = path.replace(BEFORE_SLASH_RE, '');
|
|
377
|
+
|
|
378
|
+
{
|
|
379
|
+
// In DEV, include code for a common special case:
|
|
380
|
+
// prefer "folder/index.js" instead of just "index.js".
|
|
381
|
+
if (/^index\./.test(fileName)) {
|
|
382
|
+
var match = path.match(BEFORE_SLASH_RE);
|
|
383
|
+
|
|
384
|
+
if (match) {
|
|
385
|
+
var pathBeforeSlash = match[1];
|
|
386
|
+
|
|
387
|
+
if (pathBeforeSlash) {
|
|
388
|
+
var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
|
|
389
|
+
fileName = folderName + '/' + fileName;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
|
|
396
|
+
} else if (ownerName) {
|
|
397
|
+
sourceInfo = ' (created by ' + ownerName + ')';
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
return '\n in ' + (name || 'Unknown') + sourceInfo;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
var Resolved = 1;
|
|
404
|
+
function refineResolvedLazyComponent(lazyComponent) {
|
|
405
|
+
return lazyComponent._status === Resolved ? lazyComponent._result : null;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
function getWrappedName(outerType, innerType, wrapperName) {
|
|
409
|
+
var functionName = innerType.displayName || innerType.name || '';
|
|
410
|
+
return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
function getComponentName(type) {
|
|
414
|
+
if (type == null) {
|
|
415
|
+
// Host root, text node or just invalid type.
|
|
416
|
+
return null;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
{
|
|
420
|
+
if (typeof type.tag === 'number') {
|
|
421
|
+
error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
if (typeof type === 'function') {
|
|
426
|
+
return type.displayName || type.name || null;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
if (typeof type === 'string') {
|
|
430
|
+
return type;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
switch (type) {
|
|
434
|
+
case REACT_FRAGMENT_TYPE:
|
|
435
|
+
return 'Fragment';
|
|
436
|
+
|
|
437
|
+
case REACT_PORTAL_TYPE:
|
|
438
|
+
return 'Portal';
|
|
439
|
+
|
|
440
|
+
case REACT_PROFILER_TYPE:
|
|
441
|
+
return "Profiler";
|
|
442
|
+
|
|
443
|
+
case REACT_STRICT_MODE_TYPE:
|
|
444
|
+
return 'StrictMode';
|
|
445
|
+
|
|
446
|
+
case REACT_SUSPENSE_TYPE:
|
|
447
|
+
return 'Suspense';
|
|
448
|
+
|
|
449
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
450
|
+
return 'SuspenseList';
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
if (typeof type === 'object') {
|
|
454
|
+
switch (type.$$typeof) {
|
|
455
|
+
case REACT_CONTEXT_TYPE:
|
|
456
|
+
return 'Context.Consumer';
|
|
457
|
+
|
|
458
|
+
case REACT_PROVIDER_TYPE:
|
|
459
|
+
return 'Context.Provider';
|
|
460
|
+
|
|
461
|
+
case REACT_FORWARD_REF_TYPE:
|
|
462
|
+
return getWrappedName(type, type.render, 'ForwardRef');
|
|
463
|
+
|
|
464
|
+
case REACT_MEMO_TYPE:
|
|
465
|
+
return getComponentName(type.type);
|
|
466
|
+
|
|
467
|
+
case REACT_BLOCK_TYPE:
|
|
468
|
+
return getComponentName(type.render);
|
|
469
|
+
|
|
470
|
+
case REACT_LAZY_TYPE:
|
|
471
|
+
{
|
|
472
|
+
var thenable = type;
|
|
473
|
+
var resolvedThenable = refineResolvedLazyComponent(thenable);
|
|
474
|
+
|
|
475
|
+
if (resolvedThenable) {
|
|
476
|
+
return getComponentName(resolvedThenable);
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
break;
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
return null;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
var ReactDebugCurrentFrame = {};
|
|
488
|
+
var currentlyValidatingElement = null;
|
|
489
|
+
function setCurrentlyValidatingElement(element) {
|
|
490
|
+
{
|
|
491
|
+
currentlyValidatingElement = element;
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
{
|
|
496
|
+
// Stack implementation injected by the current renderer.
|
|
497
|
+
ReactDebugCurrentFrame.getCurrentStack = null;
|
|
498
|
+
|
|
499
|
+
ReactDebugCurrentFrame.getStackAddendum = function () {
|
|
500
|
+
var stack = ''; // Add an extra top frame while an element is being validated
|
|
501
|
+
|
|
502
|
+
if (currentlyValidatingElement) {
|
|
503
|
+
var name = getComponentName(currentlyValidatingElement.type);
|
|
504
|
+
var owner = currentlyValidatingElement._owner;
|
|
505
|
+
stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
|
|
506
|
+
} // Delegate to the injected renderer-specific implementation
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
var impl = ReactDebugCurrentFrame.getCurrentStack;
|
|
510
|
+
|
|
511
|
+
if (impl) {
|
|
512
|
+
stack += impl() || '';
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
return stack;
|
|
516
|
+
};
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* Used by act() to track whether you're inside an act() scope.
|
|
521
|
+
*/
|
|
522
|
+
var IsSomeRendererActing = {
|
|
523
|
+
current: false
|
|
524
|
+
};
|
|
525
|
+
|
|
526
|
+
var ReactSharedInternals = {
|
|
527
|
+
ReactCurrentDispatcher: ReactCurrentDispatcher,
|
|
528
|
+
ReactCurrentBatchConfig: ReactCurrentBatchConfig,
|
|
529
|
+
ReactCurrentOwner: ReactCurrentOwner,
|
|
530
|
+
IsSomeRendererActing: IsSomeRendererActing,
|
|
531
|
+
// Used by renderers to avoid bundling object-assign twice in UMD bundles:
|
|
532
|
+
assign: _assign
|
|
533
|
+
};
|
|
534
|
+
|
|
535
|
+
{
|
|
536
|
+
_assign(ReactSharedInternals, {
|
|
537
|
+
// These should not be included in production.
|
|
538
|
+
ReactDebugCurrentFrame: ReactDebugCurrentFrame,
|
|
539
|
+
// Shim for React DOM 16.0.0 which still destructured (but not used) this.
|
|
540
|
+
// TODO: remove in React 17.0.
|
|
541
|
+
ReactComponentTreeHook: {}
|
|
542
|
+
});
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
// by calls to these methods by a Babel plugin.
|
|
546
|
+
//
|
|
547
|
+
// In PROD (or in packages without access to React internals),
|
|
548
|
+
// they are left as they are instead.
|
|
549
|
+
|
|
550
|
+
function warn(format) {
|
|
551
|
+
{
|
|
552
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
553
|
+
args[_key - 1] = arguments[_key];
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
printWarning('warn', format, args);
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
function error(format) {
|
|
560
|
+
{
|
|
561
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
562
|
+
args[_key2 - 1] = arguments[_key2];
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
printWarning('error', format, args);
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
function printWarning(level, format, args) {
|
|
570
|
+
// When changing this logic, you might want to also
|
|
571
|
+
// update consoleWithStackDev.www.js as well.
|
|
572
|
+
{
|
|
573
|
+
var hasExistingStack = args.length > 0 && typeof args[args.length - 1] === 'string' && args[args.length - 1].indexOf('\n in') === 0;
|
|
574
|
+
|
|
575
|
+
if (!hasExistingStack) {
|
|
576
|
+
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
577
|
+
var stack = ReactDebugCurrentFrame.getStackAddendum();
|
|
578
|
+
|
|
579
|
+
if (stack !== '') {
|
|
580
|
+
format += '%s';
|
|
581
|
+
args = args.concat([stack]);
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
var argsWithFormat = args.map(function (item) {
|
|
586
|
+
return '' + item;
|
|
587
|
+
}); // Careful: RN currently depends on this prefix
|
|
588
|
+
|
|
589
|
+
argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
|
|
590
|
+
// breaks IE9: https://github.com/facebook/react/issues/13610
|
|
591
|
+
// eslint-disable-next-line react-internal/no-production-logging
|
|
592
|
+
|
|
593
|
+
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
594
|
+
|
|
595
|
+
try {
|
|
596
|
+
// --- Welcome to debugging React ---
|
|
597
|
+
// This error was thrown as a convenience so that you can use this stack
|
|
598
|
+
// to find the callsite that caused this warning to fire.
|
|
599
|
+
var argIndex = 0;
|
|
600
|
+
var message = 'Warning: ' + format.replace(/%s/g, function () {
|
|
601
|
+
return args[argIndex++];
|
|
602
|
+
});
|
|
603
|
+
throw new Error(message);
|
|
604
|
+
} catch (x) {}
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
var didWarnStateUpdateForUnmountedComponent = {};
|
|
609
|
+
|
|
610
|
+
function warnNoop(publicInstance, callerName) {
|
|
611
|
+
{
|
|
612
|
+
var _constructor = publicInstance.constructor;
|
|
613
|
+
var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
|
|
614
|
+
var warningKey = componentName + "." + callerName;
|
|
615
|
+
|
|
616
|
+
if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
|
|
617
|
+
return;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
error("Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);
|
|
621
|
+
|
|
622
|
+
didWarnStateUpdateForUnmountedComponent[warningKey] = true;
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
/**
|
|
626
|
+
* This is the abstract API for an update queue.
|
|
627
|
+
*/
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
var ReactNoopUpdateQueue = {
|
|
631
|
+
/**
|
|
632
|
+
* Checks whether or not this composite component is mounted.
|
|
633
|
+
* @param {ReactClass} publicInstance The instance we want to test.
|
|
634
|
+
* @return {boolean} True if mounted, false otherwise.
|
|
635
|
+
* @protected
|
|
636
|
+
* @final
|
|
637
|
+
*/
|
|
638
|
+
isMounted: function (publicInstance) {
|
|
639
|
+
return false;
|
|
640
|
+
},
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* Forces an update. This should only be invoked when it is known with
|
|
644
|
+
* certainty that we are **not** in a DOM transaction.
|
|
645
|
+
*
|
|
646
|
+
* You may want to call this when you know that some deeper aspect of the
|
|
647
|
+
* component's state has changed but `setState` was not called.
|
|
648
|
+
*
|
|
649
|
+
* This will not invoke `shouldComponentUpdate`, but it will invoke
|
|
650
|
+
* `componentWillUpdate` and `componentDidUpdate`.
|
|
651
|
+
*
|
|
652
|
+
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
653
|
+
* @param {?function} callback Called after component is updated.
|
|
654
|
+
* @param {?string} callerName name of the calling function in the public API.
|
|
655
|
+
* @internal
|
|
656
|
+
*/
|
|
657
|
+
enqueueForceUpdate: function (publicInstance, callback, callerName) {
|
|
658
|
+
warnNoop(publicInstance, 'forceUpdate');
|
|
659
|
+
},
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* Replaces all of the state. Always use this or `setState` to mutate state.
|
|
663
|
+
* You should treat `this.state` as immutable.
|
|
664
|
+
*
|
|
665
|
+
* There is no guarantee that `this.state` will be immediately updated, so
|
|
666
|
+
* accessing `this.state` after calling this method may return the old value.
|
|
667
|
+
*
|
|
668
|
+
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
669
|
+
* @param {object} completeState Next state.
|
|
670
|
+
* @param {?function} callback Called after component is updated.
|
|
671
|
+
* @param {?string} callerName name of the calling function in the public API.
|
|
672
|
+
* @internal
|
|
673
|
+
*/
|
|
674
|
+
enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
|
|
675
|
+
warnNoop(publicInstance, 'replaceState');
|
|
676
|
+
},
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* Sets a subset of the state. This only exists because _pendingState is
|
|
680
|
+
* internal. This provides a merging strategy that is not available to deep
|
|
681
|
+
* properties which is confusing. TODO: Expose pendingState or don't use it
|
|
682
|
+
* during the merge.
|
|
683
|
+
*
|
|
684
|
+
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
685
|
+
* @param {object} partialState Next partial state to be merged with state.
|
|
686
|
+
* @param {?function} callback Called after component is updated.
|
|
687
|
+
* @param {?string} Name of the calling function in the public API.
|
|
688
|
+
* @internal
|
|
689
|
+
*/
|
|
690
|
+
enqueueSetState: function (publicInstance, partialState, callback, callerName) {
|
|
691
|
+
warnNoop(publicInstance, 'setState');
|
|
692
|
+
}
|
|
693
|
+
};
|
|
694
|
+
|
|
695
|
+
var emptyObject = {};
|
|
696
|
+
|
|
697
|
+
{
|
|
698
|
+
Object.freeze(emptyObject);
|
|
699
|
+
}
|
|
700
|
+
/**
|
|
701
|
+
* Base class helpers for the updating state of a component.
|
|
702
|
+
*/
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
function Component(props, context, updater) {
|
|
706
|
+
this.props = props;
|
|
707
|
+
this.context = context; // If a component has string refs, we will assign a different object later.
|
|
708
|
+
|
|
709
|
+
this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the
|
|
710
|
+
// renderer.
|
|
711
|
+
|
|
712
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
Component.prototype.isReactComponent = {};
|
|
716
|
+
/**
|
|
717
|
+
* Sets a subset of the state. Always use this to mutate
|
|
718
|
+
* state. You should treat `this.state` as immutable.
|
|
719
|
+
*
|
|
720
|
+
* There is no guarantee that `this.state` will be immediately updated, so
|
|
721
|
+
* accessing `this.state` after calling this method may return the old value.
|
|
722
|
+
*
|
|
723
|
+
* There is no guarantee that calls to `setState` will run synchronously,
|
|
724
|
+
* as they may eventually be batched together. You can provide an optional
|
|
725
|
+
* callback that will be executed when the call to setState is actually
|
|
726
|
+
* completed.
|
|
727
|
+
*
|
|
728
|
+
* When a function is provided to setState, it will be called at some point in
|
|
729
|
+
* the future (not synchronously). It will be called with the up to date
|
|
730
|
+
* component arguments (state, props, context). These values can be different
|
|
731
|
+
* from this.* because your function may be called after receiveProps but before
|
|
732
|
+
* shouldComponentUpdate, and this new state, props, and context will not yet be
|
|
733
|
+
* assigned to this.
|
|
734
|
+
*
|
|
735
|
+
* @param {object|function} partialState Next partial state or function to
|
|
736
|
+
* produce next partial state to be merged with current state.
|
|
737
|
+
* @param {?function} callback Called after state is updated.
|
|
738
|
+
* @final
|
|
739
|
+
* @protected
|
|
740
|
+
*/
|
|
741
|
+
|
|
742
|
+
Component.prototype.setState = function (partialState, callback) {
|
|
743
|
+
if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {
|
|
744
|
+
{
|
|
745
|
+
throw Error( "setState(...): takes an object of state variables to update or a function which returns an object of state variables." );
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
this.updater.enqueueSetState(this, partialState, callback, 'setState');
|
|
750
|
+
};
|
|
751
|
+
/**
|
|
752
|
+
* Forces an update. This should only be invoked when it is known with
|
|
753
|
+
* certainty that we are **not** in a DOM transaction.
|
|
754
|
+
*
|
|
755
|
+
* You may want to call this when you know that some deeper aspect of the
|
|
756
|
+
* component's state has changed but `setState` was not called.
|
|
757
|
+
*
|
|
758
|
+
* This will not invoke `shouldComponentUpdate`, but it will invoke
|
|
759
|
+
* `componentWillUpdate` and `componentDidUpdate`.
|
|
760
|
+
*
|
|
761
|
+
* @param {?function} callback Called after update is complete.
|
|
762
|
+
* @final
|
|
763
|
+
* @protected
|
|
764
|
+
*/
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
Component.prototype.forceUpdate = function (callback) {
|
|
768
|
+
this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
|
|
769
|
+
};
|
|
770
|
+
/**
|
|
771
|
+
* Deprecated APIs. These APIs used to exist on classic React classes but since
|
|
772
|
+
* we would like to deprecate them, we're not going to move them over to this
|
|
773
|
+
* modern base class. Instead, we define a getter that warns if it's accessed.
|
|
774
|
+
*/
|
|
775
|
+
|
|
776
|
+
|
|
777
|
+
{
|
|
778
|
+
var deprecatedAPIs = {
|
|
779
|
+
isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
|
|
780
|
+
replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
|
|
781
|
+
};
|
|
782
|
+
|
|
783
|
+
var defineDeprecationWarning = function (methodName, info) {
|
|
784
|
+
Object.defineProperty(Component.prototype, methodName, {
|
|
785
|
+
get: function () {
|
|
786
|
+
warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
|
|
787
|
+
|
|
788
|
+
return undefined;
|
|
789
|
+
}
|
|
790
|
+
});
|
|
791
|
+
};
|
|
792
|
+
|
|
793
|
+
for (var fnName in deprecatedAPIs) {
|
|
794
|
+
if (deprecatedAPIs.hasOwnProperty(fnName)) {
|
|
795
|
+
defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
function ComponentDummy() {}
|
|
801
|
+
|
|
802
|
+
ComponentDummy.prototype = Component.prototype;
|
|
803
|
+
/**
|
|
804
|
+
* Convenience component with default shallow equality check for sCU.
|
|
805
|
+
*/
|
|
806
|
+
|
|
807
|
+
function PureComponent(props, context, updater) {
|
|
808
|
+
this.props = props;
|
|
809
|
+
this.context = context; // If a component has string refs, we will assign a different object later.
|
|
810
|
+
|
|
811
|
+
this.refs = emptyObject;
|
|
812
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
816
|
+
pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.
|
|
817
|
+
|
|
818
|
+
_assign(pureComponentPrototype, Component.prototype);
|
|
819
|
+
|
|
820
|
+
pureComponentPrototype.isPureReactComponent = true;
|
|
821
|
+
|
|
822
|
+
// an immutable object with a single mutable value
|
|
823
|
+
function createRef() {
|
|
824
|
+
var refObject = {
|
|
825
|
+
current: null
|
|
826
|
+
};
|
|
827
|
+
|
|
828
|
+
{
|
|
829
|
+
Object.seal(refObject);
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
return refObject;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
836
|
+
var RESERVED_PROPS = {
|
|
837
|
+
key: true,
|
|
838
|
+
ref: true,
|
|
839
|
+
__self: true,
|
|
840
|
+
__source: true
|
|
841
|
+
};
|
|
842
|
+
var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
|
|
843
|
+
|
|
844
|
+
{
|
|
845
|
+
didWarnAboutStringRefs = {};
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
function hasValidRef(config) {
|
|
849
|
+
{
|
|
850
|
+
if (hasOwnProperty.call(config, 'ref')) {
|
|
851
|
+
var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
|
|
852
|
+
|
|
853
|
+
if (getter && getter.isReactWarning) {
|
|
854
|
+
return false;
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
return config.ref !== undefined;
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
function hasValidKey(config) {
|
|
863
|
+
{
|
|
864
|
+
if (hasOwnProperty.call(config, 'key')) {
|
|
865
|
+
var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
|
|
866
|
+
|
|
867
|
+
if (getter && getter.isReactWarning) {
|
|
868
|
+
return false;
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
return config.key !== undefined;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
877
|
+
var warnAboutAccessingKey = function () {
|
|
878
|
+
{
|
|
879
|
+
if (!specialPropKeyWarningShown) {
|
|
880
|
+
specialPropKeyWarningShown = true;
|
|
881
|
+
|
|
882
|
+
error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
};
|
|
886
|
+
|
|
887
|
+
warnAboutAccessingKey.isReactWarning = true;
|
|
888
|
+
Object.defineProperty(props, 'key', {
|
|
889
|
+
get: warnAboutAccessingKey,
|
|
890
|
+
configurable: true
|
|
891
|
+
});
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
function defineRefPropWarningGetter(props, displayName) {
|
|
895
|
+
var warnAboutAccessingRef = function () {
|
|
896
|
+
{
|
|
897
|
+
if (!specialPropRefWarningShown) {
|
|
898
|
+
specialPropRefWarningShown = true;
|
|
899
|
+
|
|
900
|
+
error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
};
|
|
904
|
+
|
|
905
|
+
warnAboutAccessingRef.isReactWarning = true;
|
|
906
|
+
Object.defineProperty(props, 'ref', {
|
|
907
|
+
get: warnAboutAccessingRef,
|
|
908
|
+
configurable: true
|
|
909
|
+
});
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
function warnIfStringRefCannotBeAutoConverted(config) {
|
|
913
|
+
{
|
|
914
|
+
if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
|
|
915
|
+
var componentName = getComponentName(ReactCurrentOwner.current.type);
|
|
916
|
+
|
|
917
|
+
if (!didWarnAboutStringRefs[componentName]) {
|
|
918
|
+
error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-string-ref', getComponentName(ReactCurrentOwner.current.type), config.ref);
|
|
919
|
+
|
|
920
|
+
didWarnAboutStringRefs[componentName] = true;
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
/**
|
|
926
|
+
* Factory method to create a new React element. This no longer adheres to
|
|
927
|
+
* the class pattern, so do not use new to call it. Also, instanceof check
|
|
928
|
+
* will not work. Instead test $$typeof field against Symbol.for('react.element') to check
|
|
929
|
+
* if something is a React Element.
|
|
930
|
+
*
|
|
931
|
+
* @param {*} type
|
|
932
|
+
* @param {*} props
|
|
933
|
+
* @param {*} key
|
|
934
|
+
* @param {string|object} ref
|
|
935
|
+
* @param {*} owner
|
|
936
|
+
* @param {*} self A *temporary* helper to detect places where `this` is
|
|
937
|
+
* different from the `owner` when React.createElement is called, so that we
|
|
938
|
+
* can warn. We want to get rid of owner and replace string `ref`s with arrow
|
|
939
|
+
* functions, and as long as `this` and owner are the same, there will be no
|
|
940
|
+
* change in behavior.
|
|
941
|
+
* @param {*} source An annotation object (added by a transpiler or otherwise)
|
|
942
|
+
* indicating filename, line number, and/or other information.
|
|
943
|
+
* @internal
|
|
944
|
+
*/
|
|
945
|
+
|
|
946
|
+
|
|
947
|
+
var ReactElement = function (type, key, ref, self, source, owner, props) {
|
|
948
|
+
var element = {
|
|
949
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
950
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
951
|
+
// Built-in properties that belong on the element
|
|
952
|
+
type: type,
|
|
953
|
+
key: key,
|
|
954
|
+
ref: ref,
|
|
955
|
+
props: props,
|
|
956
|
+
// Record the component responsible for creating this element.
|
|
957
|
+
_owner: owner
|
|
958
|
+
};
|
|
959
|
+
|
|
960
|
+
{
|
|
961
|
+
// The validation flag is currently mutative. We put it on
|
|
962
|
+
// an external backing store so that we can freeze the whole object.
|
|
963
|
+
// This can be replaced with a WeakMap once they are implemented in
|
|
964
|
+
// commonly used development environments.
|
|
965
|
+
element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
|
|
966
|
+
// the validation flag non-enumerable (where possible, which should
|
|
967
|
+
// include every environment we run tests in), so the test framework
|
|
968
|
+
// ignores it.
|
|
969
|
+
|
|
970
|
+
Object.defineProperty(element._store, 'validated', {
|
|
971
|
+
configurable: false,
|
|
972
|
+
enumerable: false,
|
|
973
|
+
writable: true,
|
|
974
|
+
value: false
|
|
975
|
+
}); // self and source are DEV only properties.
|
|
976
|
+
|
|
977
|
+
Object.defineProperty(element, '_self', {
|
|
978
|
+
configurable: false,
|
|
979
|
+
enumerable: false,
|
|
980
|
+
writable: false,
|
|
981
|
+
value: self
|
|
982
|
+
}); // Two elements created in two different places should be considered
|
|
983
|
+
// equal for testing purposes and therefore we hide it from enumeration.
|
|
984
|
+
|
|
985
|
+
Object.defineProperty(element, '_source', {
|
|
986
|
+
configurable: false,
|
|
987
|
+
enumerable: false,
|
|
988
|
+
writable: false,
|
|
989
|
+
value: source
|
|
990
|
+
});
|
|
991
|
+
|
|
992
|
+
if (Object.freeze) {
|
|
993
|
+
Object.freeze(element.props);
|
|
994
|
+
Object.freeze(element);
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
return element;
|
|
999
|
+
};
|
|
1000
|
+
/**
|
|
1001
|
+
* Create and return a new ReactElement of the given type.
|
|
1002
|
+
* See https://reactjs.org/docs/react-api.html#createelement
|
|
1003
|
+
*/
|
|
1004
|
+
|
|
1005
|
+
function createElement(type, config, children) {
|
|
1006
|
+
var propName; // Reserved names are extracted
|
|
1007
|
+
|
|
1008
|
+
var props = {};
|
|
1009
|
+
var key = null;
|
|
1010
|
+
var ref = null;
|
|
1011
|
+
var self = null;
|
|
1012
|
+
var source = null;
|
|
1013
|
+
|
|
1014
|
+
if (config != null) {
|
|
1015
|
+
if (hasValidRef(config)) {
|
|
1016
|
+
ref = config.ref;
|
|
1017
|
+
|
|
1018
|
+
{
|
|
1019
|
+
warnIfStringRefCannotBeAutoConverted(config);
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
if (hasValidKey(config)) {
|
|
1024
|
+
key = '' + config.key;
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
self = config.__self === undefined ? null : config.__self;
|
|
1028
|
+
source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object
|
|
1029
|
+
|
|
1030
|
+
for (propName in config) {
|
|
1031
|
+
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
1032
|
+
props[propName] = config[propName];
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
} // Children can be more than one argument, and those are transferred onto
|
|
1036
|
+
// the newly allocated props object.
|
|
1037
|
+
|
|
1038
|
+
|
|
1039
|
+
var childrenLength = arguments.length - 2;
|
|
1040
|
+
|
|
1041
|
+
if (childrenLength === 1) {
|
|
1042
|
+
props.children = children;
|
|
1043
|
+
} else if (childrenLength > 1) {
|
|
1044
|
+
var childArray = Array(childrenLength);
|
|
1045
|
+
|
|
1046
|
+
for (var i = 0; i < childrenLength; i++) {
|
|
1047
|
+
childArray[i] = arguments[i + 2];
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
{
|
|
1051
|
+
if (Object.freeze) {
|
|
1052
|
+
Object.freeze(childArray);
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
props.children = childArray;
|
|
1057
|
+
} // Resolve default props
|
|
1058
|
+
|
|
1059
|
+
|
|
1060
|
+
if (type && type.defaultProps) {
|
|
1061
|
+
var defaultProps = type.defaultProps;
|
|
1062
|
+
|
|
1063
|
+
for (propName in defaultProps) {
|
|
1064
|
+
if (props[propName] === undefined) {
|
|
1065
|
+
props[propName] = defaultProps[propName];
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
{
|
|
1071
|
+
if (key || ref) {
|
|
1072
|
+
var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
|
|
1073
|
+
|
|
1074
|
+
if (key) {
|
|
1075
|
+
defineKeyPropWarningGetter(props, displayName);
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
if (ref) {
|
|
1079
|
+
defineRefPropWarningGetter(props, displayName);
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
|
1085
|
+
}
|
|
1086
|
+
function cloneAndReplaceKey(oldElement, newKey) {
|
|
1087
|
+
var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
|
|
1088
|
+
return newElement;
|
|
1089
|
+
}
|
|
1090
|
+
/**
|
|
1091
|
+
* Clone and return a new ReactElement using element as the starting point.
|
|
1092
|
+
* See https://reactjs.org/docs/react-api.html#cloneelement
|
|
1093
|
+
*/
|
|
1094
|
+
|
|
1095
|
+
function cloneElement(element, config, children) {
|
|
1096
|
+
if (!!(element === null || element === undefined)) {
|
|
1097
|
+
{
|
|
1098
|
+
throw Error( "React.cloneElement(...): The argument must be a React element, but you passed " + element + "." );
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
var propName; // Original props are copied
|
|
1103
|
+
|
|
1104
|
+
var props = _assign({}, element.props); // Reserved names are extracted
|
|
1105
|
+
|
|
1106
|
+
|
|
1107
|
+
var key = element.key;
|
|
1108
|
+
var ref = element.ref; // Self is preserved since the owner is preserved.
|
|
1109
|
+
|
|
1110
|
+
var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a
|
|
1111
|
+
// transpiler, and the original source is probably a better indicator of the
|
|
1112
|
+
// true owner.
|
|
1113
|
+
|
|
1114
|
+
var source = element._source; // Owner will be preserved, unless ref is overridden
|
|
1115
|
+
|
|
1116
|
+
var owner = element._owner;
|
|
1117
|
+
|
|
1118
|
+
if (config != null) {
|
|
1119
|
+
if (hasValidRef(config)) {
|
|
1120
|
+
// Silently steal the ref from the parent.
|
|
1121
|
+
ref = config.ref;
|
|
1122
|
+
owner = ReactCurrentOwner.current;
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
if (hasValidKey(config)) {
|
|
1126
|
+
key = '' + config.key;
|
|
1127
|
+
} // Remaining properties override existing props
|
|
1128
|
+
|
|
1129
|
+
|
|
1130
|
+
var defaultProps;
|
|
1131
|
+
|
|
1132
|
+
if (element.type && element.type.defaultProps) {
|
|
1133
|
+
defaultProps = element.type.defaultProps;
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
for (propName in config) {
|
|
1137
|
+
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
1138
|
+
if (config[propName] === undefined && defaultProps !== undefined) {
|
|
1139
|
+
// Resolve default props
|
|
1140
|
+
props[propName] = defaultProps[propName];
|
|
1141
|
+
} else {
|
|
1142
|
+
props[propName] = config[propName];
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
} // Children can be more than one argument, and those are transferred onto
|
|
1147
|
+
// the newly allocated props object.
|
|
1148
|
+
|
|
1149
|
+
|
|
1150
|
+
var childrenLength = arguments.length - 2;
|
|
1151
|
+
|
|
1152
|
+
if (childrenLength === 1) {
|
|
1153
|
+
props.children = children;
|
|
1154
|
+
} else if (childrenLength > 1) {
|
|
1155
|
+
var childArray = Array(childrenLength);
|
|
1156
|
+
|
|
1157
|
+
for (var i = 0; i < childrenLength; i++) {
|
|
1158
|
+
childArray[i] = arguments[i + 2];
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
props.children = childArray;
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
return ReactElement(element.type, key, ref, self, source, owner, props);
|
|
1165
|
+
}
|
|
1166
|
+
/**
|
|
1167
|
+
* Verifies the object is a ReactElement.
|
|
1168
|
+
* See https://reactjs.org/docs/react-api.html#isvalidelement
|
|
1169
|
+
* @param {?object} object
|
|
1170
|
+
* @return {boolean} True if `object` is a ReactElement.
|
|
1171
|
+
* @final
|
|
1172
|
+
*/
|
|
1173
|
+
|
|
1174
|
+
function isValidElement(object) {
|
|
1175
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
var SEPARATOR = '.';
|
|
1179
|
+
var SUBSEPARATOR = ':';
|
|
1180
|
+
/**
|
|
1181
|
+
* Escape and wrap key so it is safe to use as a reactid
|
|
1182
|
+
*
|
|
1183
|
+
* @param {string} key to be escaped.
|
|
1184
|
+
* @return {string} the escaped key.
|
|
1185
|
+
*/
|
|
1186
|
+
|
|
1187
|
+
function escape(key) {
|
|
1188
|
+
var escapeRegex = /[=:]/g;
|
|
1189
|
+
var escaperLookup = {
|
|
1190
|
+
'=': '=0',
|
|
1191
|
+
':': '=2'
|
|
1192
|
+
};
|
|
1193
|
+
var escapedString = ('' + key).replace(escapeRegex, function (match) {
|
|
1194
|
+
return escaperLookup[match];
|
|
1195
|
+
});
|
|
1196
|
+
return '$' + escapedString;
|
|
1197
|
+
}
|
|
1198
|
+
/**
|
|
1199
|
+
* TODO: Test that a single child and an array with one item have the same key
|
|
1200
|
+
* pattern.
|
|
1201
|
+
*/
|
|
1202
|
+
|
|
1203
|
+
|
|
1204
|
+
var didWarnAboutMaps = false;
|
|
1205
|
+
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
1206
|
+
|
|
1207
|
+
function escapeUserProvidedKey(text) {
|
|
1208
|
+
return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
var POOL_SIZE = 10;
|
|
1212
|
+
var traverseContextPool = [];
|
|
1213
|
+
|
|
1214
|
+
function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {
|
|
1215
|
+
if (traverseContextPool.length) {
|
|
1216
|
+
var traverseContext = traverseContextPool.pop();
|
|
1217
|
+
traverseContext.result = mapResult;
|
|
1218
|
+
traverseContext.keyPrefix = keyPrefix;
|
|
1219
|
+
traverseContext.func = mapFunction;
|
|
1220
|
+
traverseContext.context = mapContext;
|
|
1221
|
+
traverseContext.count = 0;
|
|
1222
|
+
return traverseContext;
|
|
1223
|
+
} else {
|
|
1224
|
+
return {
|
|
1225
|
+
result: mapResult,
|
|
1226
|
+
keyPrefix: keyPrefix,
|
|
1227
|
+
func: mapFunction,
|
|
1228
|
+
context: mapContext,
|
|
1229
|
+
count: 0
|
|
1230
|
+
};
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
function releaseTraverseContext(traverseContext) {
|
|
1235
|
+
traverseContext.result = null;
|
|
1236
|
+
traverseContext.keyPrefix = null;
|
|
1237
|
+
traverseContext.func = null;
|
|
1238
|
+
traverseContext.context = null;
|
|
1239
|
+
traverseContext.count = 0;
|
|
1240
|
+
|
|
1241
|
+
if (traverseContextPool.length < POOL_SIZE) {
|
|
1242
|
+
traverseContextPool.push(traverseContext);
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
/**
|
|
1246
|
+
* @param {?*} children Children tree container.
|
|
1247
|
+
* @param {!string} nameSoFar Name of the key path so far.
|
|
1248
|
+
* @param {!function} callback Callback to invoke with each child found.
|
|
1249
|
+
* @param {?*} traverseContext Used to pass information throughout the traversal
|
|
1250
|
+
* process.
|
|
1251
|
+
* @return {!number} The number of children in this subtree.
|
|
1252
|
+
*/
|
|
1253
|
+
|
|
1254
|
+
|
|
1255
|
+
function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
|
|
1256
|
+
var type = typeof children;
|
|
1257
|
+
|
|
1258
|
+
if (type === 'undefined' || type === 'boolean') {
|
|
1259
|
+
// All of the above are perceived as null.
|
|
1260
|
+
children = null;
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
var invokeCallback = false;
|
|
1264
|
+
|
|
1265
|
+
if (children === null) {
|
|
1266
|
+
invokeCallback = true;
|
|
1267
|
+
} else {
|
|
1268
|
+
switch (type) {
|
|
1269
|
+
case 'string':
|
|
1270
|
+
case 'number':
|
|
1271
|
+
invokeCallback = true;
|
|
1272
|
+
break;
|
|
1273
|
+
|
|
1274
|
+
case 'object':
|
|
1275
|
+
switch (children.$$typeof) {
|
|
1276
|
+
case REACT_ELEMENT_TYPE:
|
|
1277
|
+
case REACT_PORTAL_TYPE:
|
|
1278
|
+
invokeCallback = true;
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
if (invokeCallback) {
|
|
1285
|
+
callback(traverseContext, children, // If it's the only child, treat the name as if it was wrapped in an array
|
|
1286
|
+
// so that it's consistent if the number of children grows.
|
|
1287
|
+
nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
|
|
1288
|
+
return 1;
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
var child;
|
|
1292
|
+
var nextName;
|
|
1293
|
+
var subtreeCount = 0; // Count of children found in the current subtree.
|
|
1294
|
+
|
|
1295
|
+
var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
|
|
1296
|
+
|
|
1297
|
+
if (Array.isArray(children)) {
|
|
1298
|
+
for (var i = 0; i < children.length; i++) {
|
|
1299
|
+
child = children[i];
|
|
1300
|
+
nextName = nextNamePrefix + getComponentKey(child, i);
|
|
1301
|
+
subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
|
|
1302
|
+
}
|
|
1303
|
+
} else {
|
|
1304
|
+
var iteratorFn = getIteratorFn(children);
|
|
1305
|
+
|
|
1306
|
+
if (typeof iteratorFn === 'function') {
|
|
1307
|
+
|
|
1308
|
+
{
|
|
1309
|
+
// Warn about using Maps as children
|
|
1310
|
+
if (iteratorFn === children.entries) {
|
|
1311
|
+
if (!didWarnAboutMaps) {
|
|
1312
|
+
warn('Using Maps as children is deprecated and will be removed in ' + 'a future major release. Consider converting children to ' + 'an array of keyed ReactElements instead.');
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
didWarnAboutMaps = true;
|
|
1316
|
+
}
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
var iterator = iteratorFn.call(children);
|
|
1320
|
+
var step;
|
|
1321
|
+
var ii = 0;
|
|
1322
|
+
|
|
1323
|
+
while (!(step = iterator.next()).done) {
|
|
1324
|
+
child = step.value;
|
|
1325
|
+
nextName = nextNamePrefix + getComponentKey(child, ii++);
|
|
1326
|
+
subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
|
|
1327
|
+
}
|
|
1328
|
+
} else if (type === 'object') {
|
|
1329
|
+
var addendum = '';
|
|
1330
|
+
|
|
1331
|
+
{
|
|
1332
|
+
addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum();
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
var childrenString = '' + children;
|
|
1336
|
+
|
|
1337
|
+
{
|
|
1338
|
+
{
|
|
1339
|
+
throw Error( "Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + ")." + addendum );
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
return subtreeCount;
|
|
1346
|
+
}
|
|
1347
|
+
/**
|
|
1348
|
+
* Traverses children that are typically specified as `props.children`, but
|
|
1349
|
+
* might also be specified through attributes:
|
|
1350
|
+
*
|
|
1351
|
+
* - `traverseAllChildren(this.props.children, ...)`
|
|
1352
|
+
* - `traverseAllChildren(this.props.leftPanelChildren, ...)`
|
|
1353
|
+
*
|
|
1354
|
+
* The `traverseContext` is an optional argument that is passed through the
|
|
1355
|
+
* entire traversal. It can be used to store accumulations or anything else that
|
|
1356
|
+
* the callback might find relevant.
|
|
1357
|
+
*
|
|
1358
|
+
* @param {?*} children Children tree object.
|
|
1359
|
+
* @param {!function} callback To invoke upon traversing each child.
|
|
1360
|
+
* @param {?*} traverseContext Context for traversal.
|
|
1361
|
+
* @return {!number} The number of children in this subtree.
|
|
1362
|
+
*/
|
|
1363
|
+
|
|
1364
|
+
|
|
1365
|
+
function traverseAllChildren(children, callback, traverseContext) {
|
|
1366
|
+
if (children == null) {
|
|
1367
|
+
return 0;
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
return traverseAllChildrenImpl(children, '', callback, traverseContext);
|
|
1371
|
+
}
|
|
1372
|
+
/**
|
|
1373
|
+
* Generate a key string that identifies a component within a set.
|
|
1374
|
+
*
|
|
1375
|
+
* @param {*} component A component that could contain a manual key.
|
|
1376
|
+
* @param {number} index Index that is used if a manual key is not provided.
|
|
1377
|
+
* @return {string}
|
|
1378
|
+
*/
|
|
1379
|
+
|
|
1380
|
+
|
|
1381
|
+
function getComponentKey(component, index) {
|
|
1382
|
+
// Do some typechecking here since we call this blindly. We want to ensure
|
|
1383
|
+
// that we don't block potential future ES APIs.
|
|
1384
|
+
if (typeof component === 'object' && component !== null && component.key != null) {
|
|
1385
|
+
// Explicit key
|
|
1386
|
+
return escape(component.key);
|
|
1387
|
+
} // Implicit key determined by the index in the set
|
|
1388
|
+
|
|
1389
|
+
|
|
1390
|
+
return index.toString(36);
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
function forEachSingleChild(bookKeeping, child, name) {
|
|
1394
|
+
var func = bookKeeping.func,
|
|
1395
|
+
context = bookKeeping.context;
|
|
1396
|
+
func.call(context, child, bookKeeping.count++);
|
|
1397
|
+
}
|
|
1398
|
+
/**
|
|
1399
|
+
* Iterates through children that are typically specified as `props.children`.
|
|
1400
|
+
*
|
|
1401
|
+
* See https://reactjs.org/docs/react-api.html#reactchildrenforeach
|
|
1402
|
+
*
|
|
1403
|
+
* The provided forEachFunc(child, index) will be called for each
|
|
1404
|
+
* leaf child.
|
|
1405
|
+
*
|
|
1406
|
+
* @param {?*} children Children tree container.
|
|
1407
|
+
* @param {function(*, int)} forEachFunc
|
|
1408
|
+
* @param {*} forEachContext Context for forEachContext.
|
|
1409
|
+
*/
|
|
1410
|
+
|
|
1411
|
+
|
|
1412
|
+
function forEachChildren(children, forEachFunc, forEachContext) {
|
|
1413
|
+
if (children == null) {
|
|
1414
|
+
return children;
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);
|
|
1418
|
+
traverseAllChildren(children, forEachSingleChild, traverseContext);
|
|
1419
|
+
releaseTraverseContext(traverseContext);
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
function mapSingleChildIntoContext(bookKeeping, child, childKey) {
|
|
1423
|
+
var result = bookKeeping.result,
|
|
1424
|
+
keyPrefix = bookKeeping.keyPrefix,
|
|
1425
|
+
func = bookKeeping.func,
|
|
1426
|
+
context = bookKeeping.context;
|
|
1427
|
+
var mappedChild = func.call(context, child, bookKeeping.count++);
|
|
1428
|
+
|
|
1429
|
+
if (Array.isArray(mappedChild)) {
|
|
1430
|
+
mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c) {
|
|
1431
|
+
return c;
|
|
1432
|
+
});
|
|
1433
|
+
} else if (mappedChild != null) {
|
|
1434
|
+
if (isValidElement(mappedChild)) {
|
|
1435
|
+
mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as
|
|
1436
|
+
// traverseAllChildren used to do for objects as children
|
|
1437
|
+
keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
result.push(mappedChild);
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1444
|
+
function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
|
|
1445
|
+
var escapedPrefix = '';
|
|
1446
|
+
|
|
1447
|
+
if (prefix != null) {
|
|
1448
|
+
escapedPrefix = escapeUserProvidedKey(prefix) + '/';
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
|
|
1452
|
+
traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
|
|
1453
|
+
releaseTraverseContext(traverseContext);
|
|
1454
|
+
}
|
|
1455
|
+
/**
|
|
1456
|
+
* Maps children that are typically specified as `props.children`.
|
|
1457
|
+
*
|
|
1458
|
+
* See https://reactjs.org/docs/react-api.html#reactchildrenmap
|
|
1459
|
+
*
|
|
1460
|
+
* The provided mapFunction(child, key, index) will be called for each
|
|
1461
|
+
* leaf child.
|
|
1462
|
+
*
|
|
1463
|
+
* @param {?*} children Children tree container.
|
|
1464
|
+
* @param {function(*, int)} func The map function.
|
|
1465
|
+
* @param {*} context Context for mapFunction.
|
|
1466
|
+
* @return {object} Object containing the ordered map of results.
|
|
1467
|
+
*/
|
|
50
1468
|
|
|
51
|
-
var reactDom_production_min = {};
|
|
52
1469
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
*/
|
|
58
|
-
/* eslint-disable no-unused-vars */
|
|
59
|
-
var getOwnPropertySymbols$1 = Object.getOwnPropertySymbols;
|
|
60
|
-
var hasOwnProperty$b = Object.prototype.hasOwnProperty;
|
|
61
|
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
1470
|
+
function mapChildren(children, func, context) {
|
|
1471
|
+
if (children == null) {
|
|
1472
|
+
return children;
|
|
1473
|
+
}
|
|
62
1474
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
1475
|
+
var result = [];
|
|
1476
|
+
mapIntoWithKeyPrefixInternal(children, result, null, func, context);
|
|
1477
|
+
return result;
|
|
1478
|
+
}
|
|
1479
|
+
/**
|
|
1480
|
+
* Count the number of children that are typically specified as
|
|
1481
|
+
* `props.children`.
|
|
1482
|
+
*
|
|
1483
|
+
* See https://reactjs.org/docs/react-api.html#reactchildrencount
|
|
1484
|
+
*
|
|
1485
|
+
* @param {?*} children Children tree container.
|
|
1486
|
+
* @return {number} The number of children.
|
|
1487
|
+
*/
|
|
67
1488
|
|
|
68
|
-
|
|
1489
|
+
|
|
1490
|
+
function countChildren(children) {
|
|
1491
|
+
return traverseAllChildren(children, function () {
|
|
1492
|
+
return null;
|
|
1493
|
+
}, null);
|
|
69
1494
|
}
|
|
1495
|
+
/**
|
|
1496
|
+
* Flatten a children object (typically specified as `props.children`) and
|
|
1497
|
+
* return an array with appropriately re-keyed children.
|
|
1498
|
+
*
|
|
1499
|
+
* See https://reactjs.org/docs/react-api.html#reactchildrentoarray
|
|
1500
|
+
*/
|
|
70
1501
|
|
|
71
|
-
function shouldUseNative() {
|
|
72
|
-
try {
|
|
73
|
-
if (!Object.assign) {
|
|
74
|
-
return false;
|
|
75
|
-
}
|
|
76
1502
|
|
|
77
|
-
|
|
1503
|
+
function toArray(children) {
|
|
1504
|
+
var result = [];
|
|
1505
|
+
mapIntoWithKeyPrefixInternal(children, result, null, function (child) {
|
|
1506
|
+
return child;
|
|
1507
|
+
});
|
|
1508
|
+
return result;
|
|
1509
|
+
}
|
|
1510
|
+
/**
|
|
1511
|
+
* Returns the first child in a collection of children and verifies that there
|
|
1512
|
+
* is only one child in the collection.
|
|
1513
|
+
*
|
|
1514
|
+
* See https://reactjs.org/docs/react-api.html#reactchildrenonly
|
|
1515
|
+
*
|
|
1516
|
+
* The current implementation of this function assumes that a single child gets
|
|
1517
|
+
* passed without a wrapper, but the purpose of this helper function is to
|
|
1518
|
+
* abstract away the particular structure of children.
|
|
1519
|
+
*
|
|
1520
|
+
* @param {?object} children Child collection structure.
|
|
1521
|
+
* @return {ReactElement} The first and only `ReactElement` contained in the
|
|
1522
|
+
* structure.
|
|
1523
|
+
*/
|
|
78
1524
|
|
|
79
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
80
|
-
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
81
|
-
test1[5] = 'de';
|
|
82
|
-
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
83
|
-
return false;
|
|
84
|
-
}
|
|
85
1525
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
return test2[n];
|
|
93
|
-
});
|
|
94
|
-
if (order2.join('') !== '0123456789') {
|
|
95
|
-
return false;
|
|
96
|
-
}
|
|
1526
|
+
function onlyChild(children) {
|
|
1527
|
+
if (!isValidElement(children)) {
|
|
1528
|
+
{
|
|
1529
|
+
throw Error( "React.Children.only expected to receive a single React element child." );
|
|
1530
|
+
}
|
|
1531
|
+
}
|
|
97
1532
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
101
|
-
test3[letter] = letter;
|
|
102
|
-
});
|
|
103
|
-
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
104
|
-
'abcdefghijklmnopqrst') {
|
|
105
|
-
return false;
|
|
106
|
-
}
|
|
1533
|
+
return children;
|
|
1534
|
+
}
|
|
107
1535
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
1536
|
+
function createContext(defaultValue, calculateChangedBits) {
|
|
1537
|
+
if (calculateChangedBits === undefined) {
|
|
1538
|
+
calculateChangedBits = null;
|
|
1539
|
+
} else {
|
|
1540
|
+
{
|
|
1541
|
+
if (calculateChangedBits !== null && typeof calculateChangedBits !== 'function') {
|
|
1542
|
+
error('createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits);
|
|
1543
|
+
}
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1547
|
+
var context = {
|
|
1548
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
1549
|
+
_calculateChangedBits: calculateChangedBits,
|
|
1550
|
+
// As a workaround to support multiple concurrent renderers, we categorize
|
|
1551
|
+
// some renderers as primary and others as secondary. We only expect
|
|
1552
|
+
// there to be two concurrent renderers at most: React Native (primary) and
|
|
1553
|
+
// Fabric (secondary); React DOM (primary) and React ART (secondary).
|
|
1554
|
+
// Secondary renderers store their context values on separate fields.
|
|
1555
|
+
_currentValue: defaultValue,
|
|
1556
|
+
_currentValue2: defaultValue,
|
|
1557
|
+
// Used to track how many concurrent renderers this context currently
|
|
1558
|
+
// supports within in a single renderer. Such as parallel server rendering.
|
|
1559
|
+
_threadCount: 0,
|
|
1560
|
+
// These are circular
|
|
1561
|
+
Provider: null,
|
|
1562
|
+
Consumer: null
|
|
1563
|
+
};
|
|
1564
|
+
context.Provider = {
|
|
1565
|
+
$$typeof: REACT_PROVIDER_TYPE,
|
|
1566
|
+
_context: context
|
|
1567
|
+
};
|
|
1568
|
+
var hasWarnedAboutUsingNestedContextConsumers = false;
|
|
1569
|
+
var hasWarnedAboutUsingConsumerProvider = false;
|
|
1570
|
+
|
|
1571
|
+
{
|
|
1572
|
+
// A separate object, but proxies back to the original context object for
|
|
1573
|
+
// backwards compatibility. It has a different $$typeof, so we can properly
|
|
1574
|
+
// warn for the incorrect usage of Context as a Consumer.
|
|
1575
|
+
var Consumer = {
|
|
1576
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
1577
|
+
_context: context,
|
|
1578
|
+
_calculateChangedBits: context._calculateChangedBits
|
|
1579
|
+
}; // $FlowFixMe: Flow complains about not setting a value, which is intentional here
|
|
1580
|
+
|
|
1581
|
+
Object.defineProperties(Consumer, {
|
|
1582
|
+
Provider: {
|
|
1583
|
+
get: function () {
|
|
1584
|
+
if (!hasWarnedAboutUsingConsumerProvider) {
|
|
1585
|
+
hasWarnedAboutUsingConsumerProvider = true;
|
|
1586
|
+
|
|
1587
|
+
error('Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
return context.Provider;
|
|
1591
|
+
},
|
|
1592
|
+
set: function (_Provider) {
|
|
1593
|
+
context.Provider = _Provider;
|
|
1594
|
+
}
|
|
1595
|
+
},
|
|
1596
|
+
_currentValue: {
|
|
1597
|
+
get: function () {
|
|
1598
|
+
return context._currentValue;
|
|
1599
|
+
},
|
|
1600
|
+
set: function (_currentValue) {
|
|
1601
|
+
context._currentValue = _currentValue;
|
|
1602
|
+
}
|
|
1603
|
+
},
|
|
1604
|
+
_currentValue2: {
|
|
1605
|
+
get: function () {
|
|
1606
|
+
return context._currentValue2;
|
|
1607
|
+
},
|
|
1608
|
+
set: function (_currentValue2) {
|
|
1609
|
+
context._currentValue2 = _currentValue2;
|
|
1610
|
+
}
|
|
1611
|
+
},
|
|
1612
|
+
_threadCount: {
|
|
1613
|
+
get: function () {
|
|
1614
|
+
return context._threadCount;
|
|
1615
|
+
},
|
|
1616
|
+
set: function (_threadCount) {
|
|
1617
|
+
context._threadCount = _threadCount;
|
|
1618
|
+
}
|
|
1619
|
+
},
|
|
1620
|
+
Consumer: {
|
|
1621
|
+
get: function () {
|
|
1622
|
+
if (!hasWarnedAboutUsingNestedContextConsumers) {
|
|
1623
|
+
hasWarnedAboutUsingNestedContextConsumers = true;
|
|
1624
|
+
|
|
1625
|
+
error('Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
|
|
1626
|
+
}
|
|
1627
|
+
|
|
1628
|
+
return context.Consumer;
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
}); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
|
|
1632
|
+
|
|
1633
|
+
context.Consumer = Consumer;
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
{
|
|
1637
|
+
context._currentRenderer = null;
|
|
1638
|
+
context._currentRenderer2 = null;
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
return context;
|
|
113
1642
|
}
|
|
114
1643
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
1644
|
+
function lazy(ctor) {
|
|
1645
|
+
var lazyType = {
|
|
1646
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
1647
|
+
_ctor: ctor,
|
|
1648
|
+
// React uses these fields to store the result.
|
|
1649
|
+
_status: -1,
|
|
1650
|
+
_result: null
|
|
1651
|
+
};
|
|
119
1652
|
|
|
120
|
-
|
|
121
|
-
|
|
1653
|
+
{
|
|
1654
|
+
// In production, this would just set it on the object.
|
|
1655
|
+
var defaultProps;
|
|
1656
|
+
var propTypes;
|
|
1657
|
+
Object.defineProperties(lazyType, {
|
|
1658
|
+
defaultProps: {
|
|
1659
|
+
configurable: true,
|
|
1660
|
+
get: function () {
|
|
1661
|
+
return defaultProps;
|
|
1662
|
+
},
|
|
1663
|
+
set: function (newDefaultProps) {
|
|
1664
|
+
error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
|
|
122
1665
|
|
|
123
|
-
|
|
124
|
-
if (hasOwnProperty$b.call(from, key)) {
|
|
125
|
-
to[key] = from[key];
|
|
126
|
-
}
|
|
127
|
-
}
|
|
1666
|
+
defaultProps = newDefaultProps; // Match production behavior more closely:
|
|
128
1667
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
1668
|
+
Object.defineProperty(lazyType, 'defaultProps', {
|
|
1669
|
+
enumerable: true
|
|
1670
|
+
});
|
|
1671
|
+
}
|
|
1672
|
+
},
|
|
1673
|
+
propTypes: {
|
|
1674
|
+
configurable: true,
|
|
1675
|
+
get: function () {
|
|
1676
|
+
return propTypes;
|
|
1677
|
+
},
|
|
1678
|
+
set: function (newPropTypes) {
|
|
1679
|
+
error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
|
|
138
1680
|
|
|
139
|
-
|
|
1681
|
+
propTypes = newPropTypes; // Match production behavior more closely:
|
|
1682
|
+
|
|
1683
|
+
Object.defineProperty(lazyType, 'propTypes', {
|
|
1684
|
+
enumerable: true
|
|
1685
|
+
});
|
|
1686
|
+
}
|
|
1687
|
+
}
|
|
1688
|
+
});
|
|
1689
|
+
}
|
|
1690
|
+
|
|
1691
|
+
return lazyType;
|
|
1692
|
+
}
|
|
1693
|
+
|
|
1694
|
+
function forwardRef(render) {
|
|
1695
|
+
{
|
|
1696
|
+
if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
|
|
1697
|
+
error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
|
|
1698
|
+
} else if (typeof render !== 'function') {
|
|
1699
|
+
error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
|
|
1700
|
+
} else {
|
|
1701
|
+
if (render.length !== 0 && render.length !== 2) {
|
|
1702
|
+
error('forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.');
|
|
1703
|
+
}
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
if (render != null) {
|
|
1707
|
+
if (render.defaultProps != null || render.propTypes != null) {
|
|
1708
|
+
error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
return {
|
|
1714
|
+
$$typeof: REACT_FORWARD_REF_TYPE,
|
|
1715
|
+
render: render
|
|
1716
|
+
};
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1719
|
+
function isValidElementType(type) {
|
|
1720
|
+
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1721
|
+
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);
|
|
1722
|
+
}
|
|
1723
|
+
|
|
1724
|
+
function memo(type, compare) {
|
|
1725
|
+
{
|
|
1726
|
+
if (!isValidElementType(type)) {
|
|
1727
|
+
error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
|
|
1728
|
+
}
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
return {
|
|
1732
|
+
$$typeof: REACT_MEMO_TYPE,
|
|
1733
|
+
type: type,
|
|
1734
|
+
compare: compare === undefined ? null : compare
|
|
1735
|
+
};
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
function resolveDispatcher() {
|
|
1739
|
+
var dispatcher = ReactCurrentDispatcher.current;
|
|
1740
|
+
|
|
1741
|
+
if (!(dispatcher !== null)) {
|
|
1742
|
+
{
|
|
1743
|
+
throw Error( "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem." );
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
return dispatcher;
|
|
1748
|
+
}
|
|
1749
|
+
|
|
1750
|
+
function useContext(Context, unstable_observedBits) {
|
|
1751
|
+
var dispatcher = resolveDispatcher();
|
|
1752
|
+
|
|
1753
|
+
{
|
|
1754
|
+
if (unstable_observedBits !== undefined) {
|
|
1755
|
+
error('useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\n\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://fb.me/rules-of-hooks' : '');
|
|
1756
|
+
} // TODO: add a more generic warning for invalid values.
|
|
1757
|
+
|
|
1758
|
+
|
|
1759
|
+
if (Context._context !== undefined) {
|
|
1760
|
+
var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs
|
|
1761
|
+
// and nobody should be using this in existing code.
|
|
1762
|
+
|
|
1763
|
+
if (realContext.Consumer === Context) {
|
|
1764
|
+
error('Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');
|
|
1765
|
+
} else if (realContext.Provider === Context) {
|
|
1766
|
+
error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
|
|
1767
|
+
}
|
|
1768
|
+
}
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1771
|
+
return dispatcher.useContext(Context, unstable_observedBits);
|
|
1772
|
+
}
|
|
1773
|
+
function useState(initialState) {
|
|
1774
|
+
var dispatcher = resolveDispatcher();
|
|
1775
|
+
return dispatcher.useState(initialState);
|
|
1776
|
+
}
|
|
1777
|
+
function useReducer(reducer, initialArg, init) {
|
|
1778
|
+
var dispatcher = resolveDispatcher();
|
|
1779
|
+
return dispatcher.useReducer(reducer, initialArg, init);
|
|
1780
|
+
}
|
|
1781
|
+
function useRef(initialValue) {
|
|
1782
|
+
var dispatcher = resolveDispatcher();
|
|
1783
|
+
return dispatcher.useRef(initialValue);
|
|
1784
|
+
}
|
|
1785
|
+
function useEffect(create, deps) {
|
|
1786
|
+
var dispatcher = resolveDispatcher();
|
|
1787
|
+
return dispatcher.useEffect(create, deps);
|
|
1788
|
+
}
|
|
1789
|
+
function useLayoutEffect(create, deps) {
|
|
1790
|
+
var dispatcher = resolveDispatcher();
|
|
1791
|
+
return dispatcher.useLayoutEffect(create, deps);
|
|
1792
|
+
}
|
|
1793
|
+
function useCallback(callback, deps) {
|
|
1794
|
+
var dispatcher = resolveDispatcher();
|
|
1795
|
+
return dispatcher.useCallback(callback, deps);
|
|
1796
|
+
}
|
|
1797
|
+
function useMemo(create, deps) {
|
|
1798
|
+
var dispatcher = resolveDispatcher();
|
|
1799
|
+
return dispatcher.useMemo(create, deps);
|
|
1800
|
+
}
|
|
1801
|
+
function useImperativeHandle(ref, create, deps) {
|
|
1802
|
+
var dispatcher = resolveDispatcher();
|
|
1803
|
+
return dispatcher.useImperativeHandle(ref, create, deps);
|
|
1804
|
+
}
|
|
1805
|
+
function useDebugValue(value, formatterFn) {
|
|
1806
|
+
{
|
|
1807
|
+
var dispatcher = resolveDispatcher();
|
|
1808
|
+
return dispatcher.useDebugValue(value, formatterFn);
|
|
1809
|
+
}
|
|
1810
|
+
}
|
|
1811
|
+
|
|
1812
|
+
var propTypesMisspellWarningShown;
|
|
1813
|
+
|
|
1814
|
+
{
|
|
1815
|
+
propTypesMisspellWarningShown = false;
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
function getDeclarationErrorAddendum() {
|
|
1819
|
+
if (ReactCurrentOwner.current) {
|
|
1820
|
+
var name = getComponentName(ReactCurrentOwner.current.type);
|
|
1821
|
+
|
|
1822
|
+
if (name) {
|
|
1823
|
+
return '\n\nCheck the render method of `' + name + '`.';
|
|
1824
|
+
}
|
|
1825
|
+
}
|
|
1826
|
+
|
|
1827
|
+
return '';
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1830
|
+
function getSourceInfoErrorAddendum(source) {
|
|
1831
|
+
if (source !== undefined) {
|
|
1832
|
+
var fileName = source.fileName.replace(/^.*[\\\/]/, '');
|
|
1833
|
+
var lineNumber = source.lineNumber;
|
|
1834
|
+
return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
|
|
1835
|
+
}
|
|
1836
|
+
|
|
1837
|
+
return '';
|
|
1838
|
+
}
|
|
1839
|
+
|
|
1840
|
+
function getSourceInfoErrorAddendumForProps(elementProps) {
|
|
1841
|
+
if (elementProps !== null && elementProps !== undefined) {
|
|
1842
|
+
return getSourceInfoErrorAddendum(elementProps.__source);
|
|
1843
|
+
}
|
|
1844
|
+
|
|
1845
|
+
return '';
|
|
1846
|
+
}
|
|
1847
|
+
/**
|
|
1848
|
+
* Warn if there's no key explicitly set on dynamic arrays of children or
|
|
1849
|
+
* object keys are not valid. This allows us to keep track of children between
|
|
1850
|
+
* updates.
|
|
1851
|
+
*/
|
|
1852
|
+
|
|
1853
|
+
|
|
1854
|
+
var ownerHasKeyUseWarning = {};
|
|
1855
|
+
|
|
1856
|
+
function getCurrentComponentErrorInfo(parentType) {
|
|
1857
|
+
var info = getDeclarationErrorAddendum();
|
|
1858
|
+
|
|
1859
|
+
if (!info) {
|
|
1860
|
+
var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
|
|
1861
|
+
|
|
1862
|
+
if (parentName) {
|
|
1863
|
+
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
|
1864
|
+
}
|
|
1865
|
+
}
|
|
1866
|
+
|
|
1867
|
+
return info;
|
|
1868
|
+
}
|
|
1869
|
+
/**
|
|
1870
|
+
* Warn if the element doesn't have an explicit key assigned to it.
|
|
1871
|
+
* This element is in an array. The array could grow and shrink or be
|
|
1872
|
+
* reordered. All children that haven't already been validated are required to
|
|
1873
|
+
* have a "key" property assigned to it. Error statuses are cached so a warning
|
|
1874
|
+
* will only be shown once.
|
|
1875
|
+
*
|
|
1876
|
+
* @internal
|
|
1877
|
+
* @param {ReactElement} element Element that requires a key.
|
|
1878
|
+
* @param {*} parentType element's parent's type.
|
|
1879
|
+
*/
|
|
1880
|
+
|
|
1881
|
+
|
|
1882
|
+
function validateExplicitKey(element, parentType) {
|
|
1883
|
+
if (!element._store || element._store.validated || element.key != null) {
|
|
1884
|
+
return;
|
|
1885
|
+
}
|
|
1886
|
+
|
|
1887
|
+
element._store.validated = true;
|
|
1888
|
+
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
1889
|
+
|
|
1890
|
+
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
1891
|
+
return;
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
|
|
1895
|
+
// property, it may be the creator of the child that's responsible for
|
|
1896
|
+
// assigning it a key.
|
|
1897
|
+
|
|
1898
|
+
var childOwner = '';
|
|
1899
|
+
|
|
1900
|
+
if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
|
|
1901
|
+
// Give the component that originally created this child.
|
|
1902
|
+
childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
setCurrentlyValidatingElement(element);
|
|
1906
|
+
|
|
1907
|
+
{
|
|
1908
|
+
error('Each child in a list should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1911
|
+
setCurrentlyValidatingElement(null);
|
|
1912
|
+
}
|
|
1913
|
+
/**
|
|
1914
|
+
* Ensure that every element either is passed in a static location, in an
|
|
1915
|
+
* array with an explicit keys property defined, or in an object literal
|
|
1916
|
+
* with valid key property.
|
|
1917
|
+
*
|
|
1918
|
+
* @internal
|
|
1919
|
+
* @param {ReactNode} node Statically passed child of any type.
|
|
1920
|
+
* @param {*} parentType node's parent's type.
|
|
1921
|
+
*/
|
|
1922
|
+
|
|
1923
|
+
|
|
1924
|
+
function validateChildKeys(node, parentType) {
|
|
1925
|
+
if (typeof node !== 'object') {
|
|
1926
|
+
return;
|
|
1927
|
+
}
|
|
1928
|
+
|
|
1929
|
+
if (Array.isArray(node)) {
|
|
1930
|
+
for (var i = 0; i < node.length; i++) {
|
|
1931
|
+
var child = node[i];
|
|
1932
|
+
|
|
1933
|
+
if (isValidElement(child)) {
|
|
1934
|
+
validateExplicitKey(child, parentType);
|
|
1935
|
+
}
|
|
1936
|
+
}
|
|
1937
|
+
} else if (isValidElement(node)) {
|
|
1938
|
+
// This element was passed in a valid location.
|
|
1939
|
+
if (node._store) {
|
|
1940
|
+
node._store.validated = true;
|
|
1941
|
+
}
|
|
1942
|
+
} else if (node) {
|
|
1943
|
+
var iteratorFn = getIteratorFn(node);
|
|
1944
|
+
|
|
1945
|
+
if (typeof iteratorFn === 'function') {
|
|
1946
|
+
// Entry iterators used to provide implicit keys,
|
|
1947
|
+
// but now we print a separate warning for them later.
|
|
1948
|
+
if (iteratorFn !== node.entries) {
|
|
1949
|
+
var iterator = iteratorFn.call(node);
|
|
1950
|
+
var step;
|
|
1951
|
+
|
|
1952
|
+
while (!(step = iterator.next()).done) {
|
|
1953
|
+
if (isValidElement(step.value)) {
|
|
1954
|
+
validateExplicitKey(step.value, parentType);
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
}
|
|
1959
|
+
}
|
|
1960
|
+
}
|
|
1961
|
+
/**
|
|
1962
|
+
* Given an element, validate that its props follow the propTypes definition,
|
|
1963
|
+
* provided by the type.
|
|
1964
|
+
*
|
|
1965
|
+
* @param {ReactElement} element
|
|
1966
|
+
*/
|
|
1967
|
+
|
|
1968
|
+
|
|
1969
|
+
function validatePropTypes(element) {
|
|
1970
|
+
{
|
|
1971
|
+
var type = element.type;
|
|
1972
|
+
|
|
1973
|
+
if (type === null || type === undefined || typeof type === 'string') {
|
|
1974
|
+
return;
|
|
1975
|
+
}
|
|
1976
|
+
|
|
1977
|
+
var name = getComponentName(type);
|
|
1978
|
+
var propTypes;
|
|
1979
|
+
|
|
1980
|
+
if (typeof type === 'function') {
|
|
1981
|
+
propTypes = type.propTypes;
|
|
1982
|
+
} else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
|
1983
|
+
// Inner props are checked in the reconciler.
|
|
1984
|
+
type.$$typeof === REACT_MEMO_TYPE)) {
|
|
1985
|
+
propTypes = type.propTypes;
|
|
1986
|
+
} else {
|
|
1987
|
+
return;
|
|
1988
|
+
}
|
|
1989
|
+
|
|
1990
|
+
if (propTypes) {
|
|
1991
|
+
setCurrentlyValidatingElement(element);
|
|
1992
|
+
checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum);
|
|
1993
|
+
setCurrentlyValidatingElement(null);
|
|
1994
|
+
} else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
|
|
1995
|
+
propTypesMisspellWarningShown = true;
|
|
1996
|
+
|
|
1997
|
+
error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
|
|
1998
|
+
}
|
|
1999
|
+
|
|
2000
|
+
if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
|
|
2001
|
+
error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
|
|
2002
|
+
}
|
|
2003
|
+
}
|
|
2004
|
+
}
|
|
2005
|
+
/**
|
|
2006
|
+
* Given a fragment, validate that it can only be provided with fragment props
|
|
2007
|
+
* @param {ReactElement} fragment
|
|
2008
|
+
*/
|
|
2009
|
+
|
|
2010
|
+
|
|
2011
|
+
function validateFragmentProps(fragment) {
|
|
2012
|
+
{
|
|
2013
|
+
setCurrentlyValidatingElement(fragment);
|
|
2014
|
+
var keys = Object.keys(fragment.props);
|
|
2015
|
+
|
|
2016
|
+
for (var i = 0; i < keys.length; i++) {
|
|
2017
|
+
var key = keys[i];
|
|
2018
|
+
|
|
2019
|
+
if (key !== 'children' && key !== 'key') {
|
|
2020
|
+
error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
|
|
2021
|
+
|
|
2022
|
+
break;
|
|
2023
|
+
}
|
|
2024
|
+
}
|
|
2025
|
+
|
|
2026
|
+
if (fragment.ref !== null) {
|
|
2027
|
+
error('Invalid attribute `ref` supplied to `React.Fragment`.');
|
|
2028
|
+
}
|
|
2029
|
+
|
|
2030
|
+
setCurrentlyValidatingElement(null);
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
2033
|
+
function createElementWithValidation(type, props, children) {
|
|
2034
|
+
var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
|
|
2035
|
+
// succeed and there will likely be errors in render.
|
|
2036
|
+
|
|
2037
|
+
if (!validType) {
|
|
2038
|
+
var info = '';
|
|
2039
|
+
|
|
2040
|
+
if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
|
|
2041
|
+
info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
|
|
2042
|
+
}
|
|
2043
|
+
|
|
2044
|
+
var sourceInfo = getSourceInfoErrorAddendumForProps(props);
|
|
2045
|
+
|
|
2046
|
+
if (sourceInfo) {
|
|
2047
|
+
info += sourceInfo;
|
|
2048
|
+
} else {
|
|
2049
|
+
info += getDeclarationErrorAddendum();
|
|
2050
|
+
}
|
|
2051
|
+
|
|
2052
|
+
var typeString;
|
|
2053
|
+
|
|
2054
|
+
if (type === null) {
|
|
2055
|
+
typeString = 'null';
|
|
2056
|
+
} else if (Array.isArray(type)) {
|
|
2057
|
+
typeString = 'array';
|
|
2058
|
+
} else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
2059
|
+
typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />";
|
|
2060
|
+
info = ' Did you accidentally export a JSX literal instead of a component?';
|
|
2061
|
+
} else {
|
|
2062
|
+
typeString = typeof type;
|
|
2063
|
+
}
|
|
2064
|
+
|
|
2065
|
+
{
|
|
2066
|
+
error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
|
|
2067
|
+
}
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2070
|
+
var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.
|
|
2071
|
+
// TODO: Drop this when these are no longer allowed as the type argument.
|
|
2072
|
+
|
|
2073
|
+
if (element == null) {
|
|
2074
|
+
return element;
|
|
2075
|
+
} // Skip key warning if the type isn't valid since our key validation logic
|
|
2076
|
+
// doesn't expect a non-string/function type and can throw confusing errors.
|
|
2077
|
+
// We don't want exception behavior to differ between dev and prod.
|
|
2078
|
+
// (Rendering will throw with a helpful message and as soon as the type is
|
|
2079
|
+
// fixed, the key warnings will appear.)
|
|
2080
|
+
|
|
2081
|
+
|
|
2082
|
+
if (validType) {
|
|
2083
|
+
for (var i = 2; i < arguments.length; i++) {
|
|
2084
|
+
validateChildKeys(arguments[i], type);
|
|
2085
|
+
}
|
|
2086
|
+
}
|
|
2087
|
+
|
|
2088
|
+
if (type === REACT_FRAGMENT_TYPE) {
|
|
2089
|
+
validateFragmentProps(element);
|
|
2090
|
+
} else {
|
|
2091
|
+
validatePropTypes(element);
|
|
2092
|
+
}
|
|
2093
|
+
|
|
2094
|
+
return element;
|
|
2095
|
+
}
|
|
2096
|
+
var didWarnAboutDeprecatedCreateFactory = false;
|
|
2097
|
+
function createFactoryWithValidation(type) {
|
|
2098
|
+
var validatedFactory = createElementWithValidation.bind(null, type);
|
|
2099
|
+
validatedFactory.type = type;
|
|
2100
|
+
|
|
2101
|
+
{
|
|
2102
|
+
if (!didWarnAboutDeprecatedCreateFactory) {
|
|
2103
|
+
didWarnAboutDeprecatedCreateFactory = true;
|
|
2104
|
+
|
|
2105
|
+
warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');
|
|
2106
|
+
} // Legacy hook: remove it
|
|
2107
|
+
|
|
2108
|
+
|
|
2109
|
+
Object.defineProperty(validatedFactory, 'type', {
|
|
2110
|
+
enumerable: false,
|
|
2111
|
+
get: function () {
|
|
2112
|
+
warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
|
|
2113
|
+
|
|
2114
|
+
Object.defineProperty(this, 'type', {
|
|
2115
|
+
value: type
|
|
2116
|
+
});
|
|
2117
|
+
return type;
|
|
2118
|
+
}
|
|
2119
|
+
});
|
|
2120
|
+
}
|
|
2121
|
+
|
|
2122
|
+
return validatedFactory;
|
|
2123
|
+
}
|
|
2124
|
+
function cloneElementWithValidation(element, props, children) {
|
|
2125
|
+
var newElement = cloneElement.apply(this, arguments);
|
|
2126
|
+
|
|
2127
|
+
for (var i = 2; i < arguments.length; i++) {
|
|
2128
|
+
validateChildKeys(arguments[i], newElement.type);
|
|
2129
|
+
}
|
|
2130
|
+
|
|
2131
|
+
validatePropTypes(newElement);
|
|
2132
|
+
return newElement;
|
|
2133
|
+
}
|
|
2134
|
+
|
|
2135
|
+
{
|
|
2136
|
+
|
|
2137
|
+
try {
|
|
2138
|
+
var frozenObject = Object.freeze({});
|
|
2139
|
+
var testMap = new Map([[frozenObject, null]]);
|
|
2140
|
+
var testSet = new Set([frozenObject]); // This is necessary for Rollup to not consider these unused.
|
|
2141
|
+
// https://github.com/rollup/rollup/issues/1771
|
|
2142
|
+
// TODO: we can remove these if Rollup fixes the bug.
|
|
2143
|
+
|
|
2144
|
+
testMap.set(0, 0);
|
|
2145
|
+
testSet.add(0);
|
|
2146
|
+
} catch (e) {
|
|
2147
|
+
}
|
|
2148
|
+
}
|
|
2149
|
+
|
|
2150
|
+
var createElement$1 = createElementWithValidation ;
|
|
2151
|
+
var cloneElement$1 = cloneElementWithValidation ;
|
|
2152
|
+
var createFactory = createFactoryWithValidation ;
|
|
2153
|
+
var Children = {
|
|
2154
|
+
map: mapChildren,
|
|
2155
|
+
forEach: forEachChildren,
|
|
2156
|
+
count: countChildren,
|
|
2157
|
+
toArray: toArray,
|
|
2158
|
+
only: onlyChild
|
|
140
2159
|
};
|
|
141
2160
|
|
|
2161
|
+
react_development.Children = Children;
|
|
2162
|
+
react_development.Component = Component;
|
|
2163
|
+
react_development.Fragment = REACT_FRAGMENT_TYPE;
|
|
2164
|
+
react_development.Profiler = REACT_PROFILER_TYPE;
|
|
2165
|
+
react_development.PureComponent = PureComponent;
|
|
2166
|
+
react_development.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
2167
|
+
react_development.Suspense = REACT_SUSPENSE_TYPE;
|
|
2168
|
+
react_development.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
|
|
2169
|
+
react_development.cloneElement = cloneElement$1;
|
|
2170
|
+
react_development.createContext = createContext;
|
|
2171
|
+
react_development.createElement = createElement$1;
|
|
2172
|
+
react_development.createFactory = createFactory;
|
|
2173
|
+
react_development.createRef = createRef;
|
|
2174
|
+
react_development.forwardRef = forwardRef;
|
|
2175
|
+
react_development.isValidElement = isValidElement;
|
|
2176
|
+
react_development.lazy = lazy;
|
|
2177
|
+
react_development.memo = memo;
|
|
2178
|
+
react_development.useCallback = useCallback;
|
|
2179
|
+
react_development.useContext = useContext;
|
|
2180
|
+
react_development.useDebugValue = useDebugValue;
|
|
2181
|
+
react_development.useEffect = useEffect;
|
|
2182
|
+
react_development.useImperativeHandle = useImperativeHandle;
|
|
2183
|
+
react_development.useLayoutEffect = useLayoutEffect;
|
|
2184
|
+
react_development.useMemo = useMemo;
|
|
2185
|
+
react_development.useReducer = useReducer;
|
|
2186
|
+
react_development.useRef = useRef;
|
|
2187
|
+
react_development.useState = useState;
|
|
2188
|
+
react_development.version = ReactVersion;
|
|
2189
|
+
})();
|
|
2190
|
+
}
|
|
2191
|
+
|
|
2192
|
+
if (process.env.NODE_ENV === 'production') {
|
|
2193
|
+
react.exports = react_production_min;
|
|
2194
|
+
} else {
|
|
2195
|
+
react.exports = react_development;
|
|
2196
|
+
}
|
|
2197
|
+
|
|
2198
|
+
var React$1 = react.exports;
|
|
2199
|
+
|
|
2200
|
+
var reactDom = {exports: {}};
|
|
2201
|
+
|
|
2202
|
+
var reactDom_production_min = {};
|
|
2203
|
+
|
|
142
2204
|
var scheduler = {exports: {}};
|
|
143
2205
|
|
|
144
2206
|
var scheduler_production_min = {};
|
|
@@ -1039,7 +3101,7 @@ if (process.env.NODE_ENV === 'production') {
|
|
|
1039
3101
|
* This source code is licensed under the MIT license found in the
|
|
1040
3102
|
* LICENSE file in the root directory of this source tree.
|
|
1041
3103
|
*/
|
|
1042
|
-
var aa=
|
|
3104
|
+
var aa=react.exports,n$1=objectAssign,r$1=scheduler.exports;function u(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return "Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!aa)throw Error(u(227));
|
|
1043
3105
|
function ba(a,b,c,d,e,f,g,h,k){var l=Array.prototype.slice.call(arguments,3);try{b.apply(c,l);}catch(m){this.onError(m);}}var da=!1,ea=null,fa=!1,ha=null,ia={onError:function(a){da=!0;ea=a;}};function ja(a,b,c,d,e,f,g,h,k){da=!1;ea=null;ba.apply(ia,arguments);}function ka(a,b,c,d,e,f,g,h,k){ja.apply(this,arguments);if(da){if(da){var l=ea;da=!1;ea=null;}else throw Error(u(198));fa||(fa=!0,ha=l);}}var la=null,ma=null,na=null;
|
|
1044
3106
|
function oa(a,b,c){var d=a.type||"unknown-event";a.currentTarget=na(c);ka(d,b,void 0,a);a.currentTarget=null;}var pa=null,qa={};
|
|
1045
3107
|
function ra(){if(pa)for(var a in qa){var b=qa[a],c=pa.indexOf(a);if(!(-1<c))throw Error(u(96,a));if(!sa[c]){if(!b.extractEvents)throw Error(u(97,a));sa[c]=b;c=b.eventTypes;for(var d in c){var e=void 0;var f=c[d],g=b,h=d;if(ta.hasOwnProperty(h))throw Error(u(99,h));ta[h]=f;var k=f.phasedRegistrationNames;if(k){for(e in k)k.hasOwnProperty(e)&&ua(k[e],g,h);e=!0;}else f.registrationName?(ua(f.registrationName,g,h),e=!0):e=!1;if(!e)throw Error(u(98,d,a));}}}}
|
|
@@ -1322,121 +3384,6 @@ reactDom_production_min.unstable_renderSubtreeIntoContainer=function(a,b,c,d){if
|
|
|
1322
3384
|
|
|
1323
3385
|
var reactDom_development = {};
|
|
1324
3386
|
|
|
1325
|
-
/**
|
|
1326
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1327
|
-
*
|
|
1328
|
-
* This source code is licensed under the MIT license found in the
|
|
1329
|
-
* LICENSE file in the root directory of this source tree.
|
|
1330
|
-
*/
|
|
1331
|
-
|
|
1332
|
-
var ReactPropTypesSecret$3 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
1333
|
-
|
|
1334
|
-
var ReactPropTypesSecret_1 = ReactPropTypesSecret$3;
|
|
1335
|
-
|
|
1336
|
-
var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
1337
|
-
|
|
1338
|
-
/**
|
|
1339
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1340
|
-
*
|
|
1341
|
-
* This source code is licensed under the MIT license found in the
|
|
1342
|
-
* LICENSE file in the root directory of this source tree.
|
|
1343
|
-
*/
|
|
1344
|
-
|
|
1345
|
-
var printWarning$2 = function() {};
|
|
1346
|
-
|
|
1347
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
1348
|
-
var ReactPropTypesSecret$2 = ReactPropTypesSecret_1;
|
|
1349
|
-
var loggedTypeFailures = {};
|
|
1350
|
-
var has$1 = has$2;
|
|
1351
|
-
|
|
1352
|
-
printWarning$2 = function(text) {
|
|
1353
|
-
var message = 'Warning: ' + text;
|
|
1354
|
-
if (typeof console !== 'undefined') {
|
|
1355
|
-
console.error(message);
|
|
1356
|
-
}
|
|
1357
|
-
try {
|
|
1358
|
-
// --- Welcome to debugging React ---
|
|
1359
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
1360
|
-
// to find the callsite that caused this warning to fire.
|
|
1361
|
-
throw new Error(message);
|
|
1362
|
-
} catch (x) { /**/ }
|
|
1363
|
-
};
|
|
1364
|
-
}
|
|
1365
|
-
|
|
1366
|
-
/**
|
|
1367
|
-
* Assert that the values match with the type specs.
|
|
1368
|
-
* Error messages are memorized and will only be shown once.
|
|
1369
|
-
*
|
|
1370
|
-
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
1371
|
-
* @param {object} values Runtime values that need to be type-checked
|
|
1372
|
-
* @param {string} location e.g. "prop", "context", "child context"
|
|
1373
|
-
* @param {string} componentName Name of the component for error messages.
|
|
1374
|
-
* @param {?Function} getStack Returns the component stack.
|
|
1375
|
-
* @private
|
|
1376
|
-
*/
|
|
1377
|
-
function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
|
|
1378
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
1379
|
-
for (var typeSpecName in typeSpecs) {
|
|
1380
|
-
if (has$1(typeSpecs, typeSpecName)) {
|
|
1381
|
-
var error;
|
|
1382
|
-
// Prop type validation may throw. In case they do, we don't want to
|
|
1383
|
-
// fail the render phase where it didn't fail before. So we log it.
|
|
1384
|
-
// After these have been cleaned up, we'll let them throw.
|
|
1385
|
-
try {
|
|
1386
|
-
// This is intentionally an invariant that gets caught. It's the same
|
|
1387
|
-
// behavior as without this statement except with a better message.
|
|
1388
|
-
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
1389
|
-
var err = Error(
|
|
1390
|
-
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
1391
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
1392
|
-
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
1393
|
-
);
|
|
1394
|
-
err.name = 'Invariant Violation';
|
|
1395
|
-
throw err;
|
|
1396
|
-
}
|
|
1397
|
-
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$2);
|
|
1398
|
-
} catch (ex) {
|
|
1399
|
-
error = ex;
|
|
1400
|
-
}
|
|
1401
|
-
if (error && !(error instanceof Error)) {
|
|
1402
|
-
printWarning$2(
|
|
1403
|
-
(componentName || 'React class') + ': type specification of ' +
|
|
1404
|
-
location + ' `' + typeSpecName + '` is invalid; the type checker ' +
|
|
1405
|
-
'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
|
|
1406
|
-
'You may have forgotten to pass an argument to the type checker ' +
|
|
1407
|
-
'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
|
|
1408
|
-
'shape all require an argument).'
|
|
1409
|
-
);
|
|
1410
|
-
}
|
|
1411
|
-
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
1412
|
-
// Only monitor this failure once because there tends to be a lot of the
|
|
1413
|
-
// same error.
|
|
1414
|
-
loggedTypeFailures[error.message] = true;
|
|
1415
|
-
|
|
1416
|
-
var stack = getStack ? getStack() : '';
|
|
1417
|
-
|
|
1418
|
-
printWarning$2(
|
|
1419
|
-
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
|
|
1420
|
-
);
|
|
1421
|
-
}
|
|
1422
|
-
}
|
|
1423
|
-
}
|
|
1424
|
-
}
|
|
1425
|
-
}
|
|
1426
|
-
|
|
1427
|
-
/**
|
|
1428
|
-
* Resets warning cache when testing.
|
|
1429
|
-
*
|
|
1430
|
-
* @private
|
|
1431
|
-
*/
|
|
1432
|
-
checkPropTypes$1.resetWarningCache = function() {
|
|
1433
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
1434
|
-
loggedTypeFailures = {};
|
|
1435
|
-
}
|
|
1436
|
-
};
|
|
1437
|
-
|
|
1438
|
-
var checkPropTypes_1 = checkPropTypes$1;
|
|
1439
|
-
|
|
1440
3387
|
var tracing = {exports: {}};
|
|
1441
3388
|
|
|
1442
3389
|
var schedulerTracing_production_min = {};
|
|
@@ -1823,7 +3770,7 @@ if (process.env.NODE_ENV === 'production') {
|
|
|
1823
3770
|
if (process.env.NODE_ENV !== "production") {
|
|
1824
3771
|
(function() {
|
|
1825
3772
|
|
|
1826
|
-
var React =
|
|
3773
|
+
var React = react.exports;
|
|
1827
3774
|
var _assign = objectAssign;
|
|
1828
3775
|
var Scheduler = scheduler.exports;
|
|
1829
3776
|
var checkPropTypes = checkPropTypes_1;
|
|
@@ -33833,7 +35780,7 @@ var _getPrototypeOf2$b = _interopRequireDefault$11(getPrototypeOf$1.exports);
|
|
|
33833
35780
|
|
|
33834
35781
|
var _inherits2$k = _interopRequireDefault$11(inherits.exports);
|
|
33835
35782
|
|
|
33836
|
-
var _react$R = _interopRequireDefault$11(
|
|
35783
|
+
var _react$R = _interopRequireDefault$11(react.exports);
|
|
33837
35784
|
|
|
33838
35785
|
var _propTypes$F = _interopRequireDefault$11(propTypes.exports);
|
|
33839
35786
|
|
|
@@ -34337,7 +36284,7 @@ var _inherits2$j = _interopRequireDefault$_(inherits.exports);
|
|
|
34337
36284
|
|
|
34338
36285
|
var _objectWithoutProperties2$z = _interopRequireDefault$_(objectWithoutProperties.exports);
|
|
34339
36286
|
|
|
34340
|
-
var _react$Q = _interopRequireDefault$_(
|
|
36287
|
+
var _react$Q = _interopRequireDefault$_(react.exports);
|
|
34341
36288
|
|
|
34342
36289
|
var _propTypes$E = _interopRequireDefault$_(propTypes.exports);
|
|
34343
36290
|
|
|
@@ -34728,7 +36675,7 @@ var _getPrototypeOf2$9 = _interopRequireDefault$Z(getPrototypeOf$1.exports);
|
|
|
34728
36675
|
|
|
34729
36676
|
var _inherits2$i = _interopRequireDefault$Z(inherits.exports);
|
|
34730
36677
|
|
|
34731
|
-
var _react$P = _interopRequireDefault$Z(
|
|
36678
|
+
var _react$P = _interopRequireDefault$Z(react.exports);
|
|
34732
36679
|
|
|
34733
36680
|
var _propTypes$D = _interopRequireDefault$Z(propTypes.exports);
|
|
34734
36681
|
|
|
@@ -35604,7 +37551,7 @@ Object.defineProperty(FormControlContext$1, "__esModule", {
|
|
|
35604
37551
|
});
|
|
35605
37552
|
FormControlContext$1.default = void 0;
|
|
35606
37553
|
|
|
35607
|
-
var _react$O = _interopRequireDefault$Y(
|
|
37554
|
+
var _react$O = _interopRequireDefault$Y(react.exports);
|
|
35608
37555
|
|
|
35609
37556
|
/**
|
|
35610
37557
|
* @ignore - internal component.
|
|
@@ -35623,7 +37570,7 @@ withFormControlContext$1.default = withFormControlContext;
|
|
|
35623
37570
|
|
|
35624
37571
|
var _extends2$y = _interopRequireDefault$X(_extends$3.exports);
|
|
35625
37572
|
|
|
35626
|
-
var _react$N = _interopRequireDefault$X(
|
|
37573
|
+
var _react$N = _interopRequireDefault$X(react.exports);
|
|
35627
37574
|
|
|
35628
37575
|
var _hoistNonReactStatics = _interopRequireDefault$X(hoistNonReactStatics_cjs);
|
|
35629
37576
|
|
|
@@ -35665,7 +37612,7 @@ var _defineProperty2$l = _interopRequireDefault$W(defineProperty$3.exports);
|
|
|
35665
37612
|
|
|
35666
37613
|
var _objectWithoutProperties2$x = _interopRequireDefault$W(objectWithoutProperties.exports);
|
|
35667
37614
|
|
|
35668
|
-
var _react$M = _interopRequireDefault$W(
|
|
37615
|
+
var _react$M = _interopRequireDefault$W(react.exports);
|
|
35669
37616
|
|
|
35670
37617
|
var _propTypes$C = _interopRequireDefault$W(propTypes.exports);
|
|
35671
37618
|
|
|
@@ -35842,7 +37789,7 @@ var _defineProperty2$k = _interopRequireDefault$V(defineProperty$3.exports);
|
|
|
35842
37789
|
|
|
35843
37790
|
var _objectWithoutProperties2$w = _interopRequireDefault$V(objectWithoutProperties.exports);
|
|
35844
37791
|
|
|
35845
|
-
var _react$L = _interopRequireDefault$V(
|
|
37792
|
+
var _react$L = _interopRequireDefault$V(react.exports);
|
|
35846
37793
|
|
|
35847
37794
|
var _propTypes$B = _interopRequireDefault$V(propTypes.exports);
|
|
35848
37795
|
|
|
@@ -36303,7 +38250,7 @@ var _inherits = _interopDefault(inherits.exports);
|
|
|
36303
38250
|
var _typeof = _interopDefault(_typeof$2.exports);
|
|
36304
38251
|
var _objectWithoutProperties = _interopDefault(objectWithoutProperties.exports);
|
|
36305
38252
|
var _extends$1 = _interopDefault(_extends$3.exports);
|
|
36306
|
-
var React = _interopDefault(
|
|
38253
|
+
var React = _interopDefault(react.exports);
|
|
36307
38254
|
var PropTypes$2 = _interopDefault(propTypes.exports);
|
|
36308
38255
|
var warning = _interopDefault(warning_1);
|
|
36309
38256
|
|
|
@@ -36618,7 +38565,7 @@ reactHelpers.cloneChildrenWithClassName = cloneChildrenWithClassName;
|
|
|
36618
38565
|
reactHelpers.isMuiElement = isMuiElement;
|
|
36619
38566
|
reactHelpers.setRef = setRef;
|
|
36620
38567
|
|
|
36621
|
-
var _react$K = _interopRequireDefault$S(
|
|
38568
|
+
var _react$K = _interopRequireDefault$S(react.exports);
|
|
36622
38569
|
|
|
36623
38570
|
var _classnames$o = _interopRequireDefault$S(classnames.exports);
|
|
36624
38571
|
|
|
@@ -36663,7 +38610,7 @@ var _getPrototypeOf2$8 = _interopRequireDefault$R(getPrototypeOf$1.exports);
|
|
|
36663
38610
|
|
|
36664
38611
|
var _inherits2$h = _interopRequireDefault$R(inherits.exports);
|
|
36665
38612
|
|
|
36666
|
-
var _react$J = _interopRequireDefault$R(
|
|
38613
|
+
var _react$J = _interopRequireDefault$R(react.exports);
|
|
36667
38614
|
|
|
36668
38615
|
var _reactDom$9 = _interopRequireDefault$R(reactDom.exports);
|
|
36669
38616
|
|
|
@@ -36806,7 +38753,7 @@ var _getPrototypeOf3$8 = _interopRequireDefault$Q(getPrototypeOf$1.exports);
|
|
|
36806
38753
|
|
|
36807
38754
|
var _inherits2$g = _interopRequireDefault$Q(inherits.exports);
|
|
36808
38755
|
|
|
36809
|
-
var _react$I = _interopRequireDefault$Q(
|
|
38756
|
+
var _react$I = _interopRequireDefault$Q(react.exports);
|
|
36810
38757
|
|
|
36811
38758
|
var _reactDom$8 = _interopRequireDefault$Q(reactDom.exports);
|
|
36812
38759
|
|
|
@@ -37798,7 +39745,7 @@ Transition$1.default = Transition$1.EXITING = Transition$1.ENTERED = Transition$
|
|
|
37798
39745
|
|
|
37799
39746
|
var PropTypes = _interopRequireWildcard(propTypes.exports);
|
|
37800
39747
|
|
|
37801
|
-
var _react$H = _interopRequireDefault$L(
|
|
39748
|
+
var _react$H = _interopRequireDefault$L(react.exports);
|
|
37802
39749
|
|
|
37803
39750
|
var _reactDom$7 = _interopRequireDefault$L(reactDom.exports);
|
|
37804
39751
|
|
|
@@ -38446,7 +40393,7 @@ var _getPrototypeOf3$7 = _interopRequireDefault$K(getPrototypeOf$1.exports);
|
|
|
38446
40393
|
|
|
38447
40394
|
var _inherits2$f = _interopRequireDefault$K(inherits.exports);
|
|
38448
40395
|
|
|
38449
|
-
var _react$G = _interopRequireDefault$K(
|
|
40396
|
+
var _react$G = _interopRequireDefault$K(react.exports);
|
|
38450
40397
|
|
|
38451
40398
|
var _propTypes$x = _interopRequireDefault$K(propTypes.exports);
|
|
38452
40399
|
|
|
@@ -38629,7 +40576,7 @@ var _defineProperty2$j = _interopRequireDefault$J(defineProperty$3.exports);
|
|
|
38629
40576
|
|
|
38630
40577
|
var _objectWithoutProperties2$u = _interopRequireDefault$J(objectWithoutProperties.exports);
|
|
38631
40578
|
|
|
38632
|
-
var _react$F = _interopRequireDefault$J(
|
|
40579
|
+
var _react$F = _interopRequireDefault$J(react.exports);
|
|
38633
40580
|
|
|
38634
40581
|
var _propTypes$w = _interopRequireDefault$J(propTypes.exports);
|
|
38635
40582
|
|
|
@@ -38762,7 +40709,7 @@ var _inherits2$e = _interopRequireDefault$I(inherits.exports);
|
|
|
38762
40709
|
|
|
38763
40710
|
var _assertThisInitialized2$3 = _interopRequireDefault$I(assertThisInitialized.exports);
|
|
38764
40711
|
|
|
38765
|
-
var _react$E = _interopRequireDefault$I(
|
|
40712
|
+
var _react$E = _interopRequireDefault$I(react.exports);
|
|
38766
40713
|
|
|
38767
40714
|
var _reactDom$6 = _interopRequireDefault$I(reactDom.exports);
|
|
38768
40715
|
|
|
@@ -39339,7 +41286,7 @@ var _getPrototypeOf3$6 = _interopRequireDefault$H(getPrototypeOf$1.exports);
|
|
|
39339
41286
|
|
|
39340
41287
|
var _inherits2$d = _interopRequireDefault$H(inherits.exports);
|
|
39341
41288
|
|
|
39342
|
-
var _react$D = _interopRequireDefault$H(
|
|
41289
|
+
var _react$D = _interopRequireDefault$H(react.exports);
|
|
39343
41290
|
|
|
39344
41291
|
var _propTypes$u = _interopRequireDefault$H(propTypes.exports);
|
|
39345
41292
|
|
|
@@ -39587,7 +41534,7 @@ var _objectWithoutProperties2$r = _interopRequireDefault$G(objectWithoutProperti
|
|
|
39587
41534
|
|
|
39588
41535
|
var _extends2$r = _interopRequireDefault$G(_extends$3.exports);
|
|
39589
41536
|
|
|
39590
|
-
var _react$C = _interopRequireDefault$G(
|
|
41537
|
+
var _react$C = _interopRequireDefault$G(react.exports);
|
|
39591
41538
|
|
|
39592
41539
|
var _propTypes$t = _interopRequireDefault$G(propTypes.exports);
|
|
39593
41540
|
|
|
@@ -39719,7 +41666,7 @@ var _getPrototypeOf2$6 = _interopRequireDefault$F(getPrototypeOf$1.exports);
|
|
|
39719
41666
|
|
|
39720
41667
|
var _inherits2$c = _interopRequireDefault$F(inherits.exports);
|
|
39721
41668
|
|
|
39722
|
-
var _react$B = _interopRequireDefault$F(
|
|
41669
|
+
var _react$B = _interopRequireDefault$F(react.exports);
|
|
39723
41670
|
|
|
39724
41671
|
var _propTypes$s = _interopRequireDefault$F(propTypes.exports);
|
|
39725
41672
|
|
|
@@ -40319,7 +42266,7 @@ Object.defineProperty(ListContext$1, "__esModule", {
|
|
|
40319
42266
|
});
|
|
40320
42267
|
ListContext$1.default = void 0;
|
|
40321
42268
|
|
|
40322
|
-
var _react$A = _interopRequireDefault$E(
|
|
42269
|
+
var _react$A = _interopRequireDefault$E(react.exports);
|
|
40323
42270
|
|
|
40324
42271
|
/**
|
|
40325
42272
|
* @ignore - internal component.
|
|
@@ -40342,7 +42289,7 @@ var _defineProperty2$g = _interopRequireDefault$D(defineProperty$3.exports);
|
|
|
40342
42289
|
|
|
40343
42290
|
var _objectWithoutProperties2$p = _interopRequireDefault$D(objectWithoutProperties.exports);
|
|
40344
42291
|
|
|
40345
|
-
var _react$z = _interopRequireDefault$D(
|
|
42292
|
+
var _react$z = _interopRequireDefault$D(react.exports);
|
|
40346
42293
|
|
|
40347
42294
|
var _propTypes$r = _interopRequireDefault$D(propTypes.exports);
|
|
40348
42295
|
|
|
@@ -40492,7 +42439,7 @@ var _getPrototypeOf3$5 = _interopRequireDefault$C(getPrototypeOf$1.exports);
|
|
|
40492
42439
|
|
|
40493
42440
|
var _inherits2$b = _interopRequireDefault$C(inherits.exports);
|
|
40494
42441
|
|
|
40495
|
-
var _react$y = _interopRequireDefault$C(
|
|
42442
|
+
var _react$y = _interopRequireDefault$C(react.exports);
|
|
40496
42443
|
|
|
40497
42444
|
var _propTypes$q = _interopRequireDefault$C(propTypes.exports);
|
|
40498
42445
|
|
|
@@ -40765,7 +42712,7 @@ var _getPrototypeOf3$4 = _interopRequireDefault$B(getPrototypeOf$1.exports);
|
|
|
40765
42712
|
|
|
40766
42713
|
var _inherits2$a = _interopRequireDefault$B(inherits.exports);
|
|
40767
42714
|
|
|
40768
|
-
var _react$x = _interopRequireDefault$B(
|
|
42715
|
+
var _react$x = _interopRequireDefault$B(react.exports);
|
|
40769
42716
|
|
|
40770
42717
|
var _propTypes$p = _interopRequireDefault$B(propTypes.exports);
|
|
40771
42718
|
|
|
@@ -41098,7 +43045,7 @@ var _inherits2$9 = _interopRequireDefault$A(inherits.exports);
|
|
|
41098
43045
|
|
|
41099
43046
|
var _typeof2 = _interopRequireDefault$A(_typeof$2.exports);
|
|
41100
43047
|
|
|
41101
|
-
var _react$w = _interopRequireDefault$A(
|
|
43048
|
+
var _react$w = _interopRequireDefault$A(react.exports);
|
|
41102
43049
|
|
|
41103
43050
|
var _propTypes$o = _interopRequireDefault$A(propTypes.exports);
|
|
41104
43051
|
|
|
@@ -41704,7 +43651,7 @@ shouldUpdate$1.default = void 0;
|
|
|
41704
43651
|
|
|
41705
43652
|
var _inheritsLoose2 = _interopRequireDefault$x(inheritsLoose.exports);
|
|
41706
43653
|
|
|
41707
|
-
var _react$v =
|
|
43654
|
+
var _react$v = react.exports;
|
|
41708
43655
|
|
|
41709
43656
|
var _setDisplayName$1 = _interopRequireDefault$x(setDisplayName$1);
|
|
41710
43657
|
|
|
@@ -41866,7 +43813,7 @@ var _defineProperty2$e = _interopRequireDefault$u(defineProperty$3.exports);
|
|
|
41866
43813
|
|
|
41867
43814
|
var _objectWithoutProperties2$l = _interopRequireDefault$u(objectWithoutProperties.exports);
|
|
41868
43815
|
|
|
41869
|
-
var _react$u = _interopRequireDefault$u(
|
|
43816
|
+
var _react$u = _interopRequireDefault$u(react.exports);
|
|
41870
43817
|
|
|
41871
43818
|
var _propTypes$n = _interopRequireDefault$u(propTypes.exports);
|
|
41872
43819
|
|
|
@@ -42060,7 +44007,7 @@ Object.defineProperty(ArrowDropDown$1, "__esModule", {
|
|
|
42060
44007
|
});
|
|
42061
44008
|
ArrowDropDown$1.default = void 0;
|
|
42062
44009
|
|
|
42063
|
-
var _react$t = _interopRequireDefault$t(
|
|
44010
|
+
var _react$t = _interopRequireDefault$t(react.exports);
|
|
42064
44011
|
|
|
42065
44012
|
var _pure$4 = _interopRequireDefault$t(pure$1);
|
|
42066
44013
|
|
|
@@ -42113,7 +44060,7 @@ var _getPrototypeOf2$4 = _interopRequireDefault$s(getPrototypeOf$1.exports);
|
|
|
42113
44060
|
|
|
42114
44061
|
var _inherits2$8 = _interopRequireDefault$s(inherits.exports);
|
|
42115
44062
|
|
|
42116
|
-
var _react$s = _interopRequireDefault$s(
|
|
44063
|
+
var _react$s = _interopRequireDefault$s(react.exports);
|
|
42117
44064
|
|
|
42118
44065
|
var _propTypes$m = _interopRequireDefault$s(propTypes.exports);
|
|
42119
44066
|
|
|
@@ -42414,7 +44361,7 @@ var _createClass2$7 = _interopRequireDefault$r(createClass$1.exports);
|
|
|
42414
44361
|
|
|
42415
44362
|
var _inherits2$7 = _interopRequireDefault$r(inherits.exports);
|
|
42416
44363
|
|
|
42417
|
-
var _react$r = _interopRequireDefault$r(
|
|
44364
|
+
var _react$r = _interopRequireDefault$r(react.exports);
|
|
42418
44365
|
|
|
42419
44366
|
var _propTypes$l = _interopRequireDefault$r(propTypes.exports);
|
|
42420
44367
|
|
|
@@ -43111,7 +45058,7 @@ var _extends2$i = _interopRequireDefault$q(_extends$3.exports);
|
|
|
43111
45058
|
|
|
43112
45059
|
var _objectWithoutProperties2$i = _interopRequireDefault$q(objectWithoutProperties.exports);
|
|
43113
45060
|
|
|
43114
|
-
var _react$q = _interopRequireDefault$q(
|
|
45061
|
+
var _react$q = _interopRequireDefault$q(react.exports);
|
|
43115
45062
|
|
|
43116
45063
|
var _propTypes$k = _interopRequireDefault$q(propTypes.exports);
|
|
43117
45064
|
|
|
@@ -43428,7 +45375,7 @@ var _defineProperty2$b = _interopRequireDefault$p(defineProperty$3.exports);
|
|
|
43428
45375
|
|
|
43429
45376
|
var _objectWithoutProperties2$h = _interopRequireDefault$p(objectWithoutProperties.exports);
|
|
43430
45377
|
|
|
43431
|
-
var _react$p = _interopRequireDefault$p(
|
|
45378
|
+
var _react$p = _interopRequireDefault$p(react.exports);
|
|
43432
45379
|
|
|
43433
45380
|
var _propTypes$j = _interopRequireDefault$p(propTypes.exports);
|
|
43434
45381
|
|
|
@@ -43537,7 +45484,7 @@ var _extends2$g = _interopRequireDefault$o(_extends$3.exports);
|
|
|
43537
45484
|
|
|
43538
45485
|
var _objectWithoutProperties2$g = _interopRequireDefault$o(objectWithoutProperties.exports);
|
|
43539
45486
|
|
|
43540
|
-
var _react$o = _interopRequireDefault$o(
|
|
45487
|
+
var _react$o = _interopRequireDefault$o(react.exports);
|
|
43541
45488
|
|
|
43542
45489
|
var _propTypes$i = _interopRequireDefault$o(propTypes.exports);
|
|
43543
45490
|
|
|
@@ -43753,7 +45700,7 @@ var _extends2$f = _interopRequireDefault$n(_extends$3.exports);
|
|
|
43753
45700
|
|
|
43754
45701
|
var _objectWithoutProperties2$f = _interopRequireDefault$n(objectWithoutProperties.exports);
|
|
43755
45702
|
|
|
43756
|
-
var _react$n = _interopRequireDefault$n(
|
|
45703
|
+
var _react$n = _interopRequireDefault$n(react.exports);
|
|
43757
45704
|
|
|
43758
45705
|
var _propTypes$h = _interopRequireDefault$n(propTypes.exports);
|
|
43759
45706
|
|
|
@@ -44017,7 +45964,7 @@ var _getPrototypeOf3$3 = _interopRequireDefault$m(getPrototypeOf$1.exports);
|
|
|
44017
45964
|
|
|
44018
45965
|
var _inherits2$6 = _interopRequireDefault$m(inherits.exports);
|
|
44019
45966
|
|
|
44020
|
-
var _react$m = _interopRequireDefault$m(
|
|
45967
|
+
var _react$m = _interopRequireDefault$m(react.exports);
|
|
44021
45968
|
|
|
44022
45969
|
var _propTypes$g = _interopRequireDefault$m(propTypes.exports);
|
|
44023
45970
|
|
|
@@ -44238,7 +46185,7 @@ ChildMapping.mergeChildMappings = mergeChildMappings;
|
|
|
44238
46185
|
ChildMapping.getInitialChildMapping = getInitialChildMapping;
|
|
44239
46186
|
ChildMapping.getNextChildMapping = getNextChildMapping;
|
|
44240
46187
|
|
|
44241
|
-
var _react$l =
|
|
46188
|
+
var _react$l = react.exports;
|
|
44242
46189
|
|
|
44243
46190
|
/**
|
|
44244
46191
|
* Given `this.props.children`, return an object mapping key to child.
|
|
@@ -44388,7 +46335,7 @@ exports.default = void 0;
|
|
|
44388
46335
|
|
|
44389
46336
|
var _propTypes = _interopRequireDefault(propTypes.exports);
|
|
44390
46337
|
|
|
44391
|
-
var _react = _interopRequireDefault(
|
|
46338
|
+
var _react = _interopRequireDefault(react.exports);
|
|
44392
46339
|
|
|
44393
46340
|
var _reactLifecyclesCompat = require$$2;
|
|
44394
46341
|
|
|
@@ -44616,7 +46563,7 @@ var _getPrototypeOf3$2 = _interopRequireDefault$k(getPrototypeOf$1.exports);
|
|
|
44616
46563
|
|
|
44617
46564
|
var _inherits2$5 = _interopRequireDefault$k(inherits.exports);
|
|
44618
46565
|
|
|
44619
|
-
var _react$k = _interopRequireDefault$k(
|
|
46566
|
+
var _react$k = _interopRequireDefault$k(react.exports);
|
|
44620
46567
|
|
|
44621
46568
|
var _propTypes$f = _interopRequireDefault$k(propTypes.exports);
|
|
44622
46569
|
|
|
@@ -44765,7 +46712,7 @@ var _inherits2$4 = _interopRequireDefault$j(inherits.exports);
|
|
|
44765
46712
|
|
|
44766
46713
|
var _assertThisInitialized2$2 = _interopRequireDefault$j(assertThisInitialized.exports);
|
|
44767
46714
|
|
|
44768
|
-
var _react$j = _interopRequireDefault$j(
|
|
46715
|
+
var _react$j = _interopRequireDefault$j(react.exports);
|
|
44769
46716
|
|
|
44770
46717
|
var _propTypes$e = _interopRequireDefault$j(propTypes.exports);
|
|
44771
46718
|
|
|
@@ -45181,7 +47128,7 @@ var _inherits2$3 = _interopRequireDefault$i(inherits.exports);
|
|
|
45181
47128
|
|
|
45182
47129
|
var _assertThisInitialized2$1 = _interopRequireDefault$i(assertThisInitialized.exports);
|
|
45183
47130
|
|
|
45184
|
-
var _react$i = _interopRequireDefault$i(
|
|
47131
|
+
var _react$i = _interopRequireDefault$i(react.exports);
|
|
45185
47132
|
|
|
45186
47133
|
var _propTypes$d = _interopRequireDefault$i(propTypes.exports);
|
|
45187
47134
|
|
|
@@ -45725,7 +47672,7 @@ Object.defineProperty(MergeListContext$1, "__esModule", {
|
|
|
45725
47672
|
});
|
|
45726
47673
|
MergeListContext$1.default = void 0;
|
|
45727
47674
|
|
|
45728
|
-
var _react$h = _interopRequireDefault$h(
|
|
47675
|
+
var _react$h = _interopRequireDefault$h(react.exports);
|
|
45729
47676
|
|
|
45730
47677
|
var _propTypes$c = _interopRequireDefault$h(propTypes.exports);
|
|
45731
47678
|
|
|
@@ -45772,7 +47719,7 @@ var _defineProperty2$8 = _interopRequireDefault$g(defineProperty$3.exports);
|
|
|
45772
47719
|
|
|
45773
47720
|
var _objectWithoutProperties2$b = _interopRequireDefault$g(objectWithoutProperties.exports);
|
|
45774
47721
|
|
|
45775
|
-
var _react$g = _interopRequireDefault$g(
|
|
47722
|
+
var _react$g = _interopRequireDefault$g(react.exports);
|
|
45776
47723
|
|
|
45777
47724
|
var _propTypes$b = _interopRequireDefault$g(propTypes.exports);
|
|
45778
47725
|
|
|
@@ -46095,7 +48042,7 @@ var _objectWithoutProperties2$a = _interopRequireDefault$f(objectWithoutProperti
|
|
|
46095
48042
|
|
|
46096
48043
|
var _extends2$a = _interopRequireDefault$f(_extends$3.exports);
|
|
46097
48044
|
|
|
46098
|
-
var _react$f = _interopRequireDefault$f(
|
|
48045
|
+
var _react$f = _interopRequireDefault$f(react.exports);
|
|
46099
48046
|
|
|
46100
48047
|
var _propTypes$a = _interopRequireDefault$f(propTypes.exports);
|
|
46101
48048
|
|
|
@@ -46238,7 +48185,7 @@ var _extends2$9 = _interopRequireDefault$e(_extends$3.exports);
|
|
|
46238
48185
|
|
|
46239
48186
|
var _objectWithoutProperties2$9 = _interopRequireDefault$e(objectWithoutProperties.exports);
|
|
46240
48187
|
|
|
46241
|
-
var _react$e = _interopRequireDefault$e(
|
|
48188
|
+
var _react$e = _interopRequireDefault$e(react.exports);
|
|
46242
48189
|
|
|
46243
48190
|
var _propTypes$9 = _interopRequireDefault$e(propTypes.exports);
|
|
46244
48191
|
|
|
@@ -46329,7 +48276,7 @@ var _extends2$8 = _interopRequireDefault$d(_extends$3.exports);
|
|
|
46329
48276
|
|
|
46330
48277
|
var _objectWithoutProperties2$8 = _interopRequireDefault$d(objectWithoutProperties.exports);
|
|
46331
48278
|
|
|
46332
|
-
var _react$d = _interopRequireDefault$d(
|
|
48279
|
+
var _react$d = _interopRequireDefault$d(react.exports);
|
|
46333
48280
|
|
|
46334
48281
|
var _propTypes$8 = _interopRequireDefault$d(propTypes.exports);
|
|
46335
48282
|
|
|
@@ -46424,7 +48371,7 @@ var _objectWithoutProperties2$7 = _interopRequireDefault$c(objectWithoutProperti
|
|
|
46424
48371
|
|
|
46425
48372
|
var _extends2$7 = _interopRequireDefault$c(_extends$3.exports);
|
|
46426
48373
|
|
|
46427
|
-
var _react$c = _interopRequireDefault$c(
|
|
48374
|
+
var _react$c = _interopRequireDefault$c(react.exports);
|
|
46428
48375
|
|
|
46429
48376
|
var _propTypes$7 = _interopRequireDefault$c(propTypes.exports);
|
|
46430
48377
|
|
|
@@ -46876,7 +48823,7 @@ var _defineProperty2$5 = _interopRequireDefault$b(defineProperty$3.exports);
|
|
|
46876
48823
|
|
|
46877
48824
|
var _objectWithoutProperties2$6 = _interopRequireDefault$b(objectWithoutProperties.exports);
|
|
46878
48825
|
|
|
46879
|
-
var _react$b = _interopRequireDefault$b(
|
|
48826
|
+
var _react$b = _interopRequireDefault$b(react.exports);
|
|
46880
48827
|
|
|
46881
48828
|
var _propTypes$6 = _interopRequireDefault$b(propTypes.exports);
|
|
46882
48829
|
|
|
@@ -47252,7 +49199,7 @@ var _defineProperty2$4 = _interopRequireDefault$a(defineProperty$3.exports);
|
|
|
47252
49199
|
|
|
47253
49200
|
var _objectWithoutProperties2$5 = _interopRequireDefault$a(objectWithoutProperties.exports);
|
|
47254
49201
|
|
|
47255
|
-
var _react$a = _interopRequireDefault$a(
|
|
49202
|
+
var _react$a = _interopRequireDefault$a(react.exports);
|
|
47256
49203
|
|
|
47257
49204
|
var _propTypes$5 = _interopRequireDefault$a(propTypes.exports);
|
|
47258
49205
|
|
|
@@ -47484,7 +49431,7 @@ var _defineProperty2$3 = _interopRequireDefault$9(defineProperty$3.exports);
|
|
|
47484
49431
|
|
|
47485
49432
|
var _objectWithoutProperties2$4 = _interopRequireDefault$9(objectWithoutProperties.exports);
|
|
47486
49433
|
|
|
47487
|
-
var _react$9 = _interopRequireDefault$9(
|
|
49434
|
+
var _react$9 = _interopRequireDefault$9(react.exports);
|
|
47488
49435
|
|
|
47489
49436
|
var _propTypes$4 = _interopRequireDefault$9(propTypes.exports);
|
|
47490
49437
|
|
|
@@ -47694,7 +49641,7 @@ var _getPrototypeOf2$2 = _interopRequireDefault$8(getPrototypeOf$1.exports);
|
|
|
47694
49641
|
|
|
47695
49642
|
var _inherits2$2 = _interopRequireDefault$8(inherits.exports);
|
|
47696
49643
|
|
|
47697
|
-
var _react$8 = _interopRequireDefault$8(
|
|
49644
|
+
var _react$8 = _interopRequireDefault$8(react.exports);
|
|
47698
49645
|
|
|
47699
49646
|
var _propTypes$3 = _interopRequireDefault$8(propTypes.exports);
|
|
47700
49647
|
|
|
@@ -47999,7 +49946,7 @@ Object.defineProperty(CheckBoxOutlineBlank$1, "__esModule", {
|
|
|
47999
49946
|
});
|
|
48000
49947
|
CheckBoxOutlineBlank$1.default = void 0;
|
|
48001
49948
|
|
|
48002
|
-
var _react$7 = _interopRequireDefault$7(
|
|
49949
|
+
var _react$7 = _interopRequireDefault$7(react.exports);
|
|
48003
49950
|
|
|
48004
49951
|
var _pure$3 = _interopRequireDefault$7(pure$1);
|
|
48005
49952
|
|
|
@@ -48030,7 +49977,7 @@ Object.defineProperty(CheckBox$1, "__esModule", {
|
|
|
48030
49977
|
});
|
|
48031
49978
|
CheckBox$1.default = void 0;
|
|
48032
49979
|
|
|
48033
|
-
var _react$6 = _interopRequireDefault$6(
|
|
49980
|
+
var _react$6 = _interopRequireDefault$6(react.exports);
|
|
48034
49981
|
|
|
48035
49982
|
var _pure$2 = _interopRequireDefault$6(pure$1);
|
|
48036
49983
|
|
|
@@ -48061,7 +50008,7 @@ Object.defineProperty(IndeterminateCheckBox$1, "__esModule", {
|
|
|
48061
50008
|
});
|
|
48062
50009
|
IndeterminateCheckBox$1.default = void 0;
|
|
48063
50010
|
|
|
48064
|
-
var _react$5 = _interopRequireDefault$5(
|
|
50011
|
+
var _react$5 = _interopRequireDefault$5(react.exports);
|
|
48065
50012
|
|
|
48066
50013
|
var _pure$1 = _interopRequireDefault$5(pure$1);
|
|
48067
50014
|
|
|
@@ -48096,7 +50043,7 @@ var _defineProperty2$1 = _interopRequireDefault$4(defineProperty$3.exports);
|
|
|
48096
50043
|
|
|
48097
50044
|
var _objectWithoutProperties2$2 = _interopRequireDefault$4(objectWithoutProperties.exports);
|
|
48098
50045
|
|
|
48099
|
-
var _react$4 = _interopRequireDefault$4(
|
|
50046
|
+
var _react$4 = _interopRequireDefault$4(react.exports);
|
|
48100
50047
|
|
|
48101
50048
|
var _propTypes$2 = _interopRequireDefault$4(propTypes.exports);
|
|
48102
50049
|
|
|
@@ -48363,7 +50310,7 @@ const styles$3 = theme => ({
|
|
|
48363
50310
|
}
|
|
48364
50311
|
});
|
|
48365
50312
|
|
|
48366
|
-
class Response extends
|
|
50313
|
+
class Response extends react.exports.Component {
|
|
48367
50314
|
constructor(props) {
|
|
48368
50315
|
super(props);
|
|
48369
50316
|
|
|
@@ -48553,46 +50500,46 @@ class Response extends React$1.Component {
|
|
|
48553
50500
|
const styles = {
|
|
48554
50501
|
minHeight: `${showKeypad.openCount > 0 ? 430 : 230}px`
|
|
48555
50502
|
};
|
|
48556
|
-
return /*#__PURE__*/
|
|
50503
|
+
return /*#__PURE__*/react.exports.createElement(Card, {
|
|
48557
50504
|
className: classes.responseContainer,
|
|
48558
50505
|
style: styles
|
|
48559
|
-
}, /*#__PURE__*/
|
|
50506
|
+
}, /*#__PURE__*/react.exports.createElement(CardContent, {
|
|
48560
50507
|
className: classes.cardContent
|
|
48561
|
-
}, /*#__PURE__*/
|
|
50508
|
+
}, /*#__PURE__*/react.exports.createElement("div", {
|
|
48562
50509
|
className: classes.titleBar
|
|
48563
|
-
}, /*#__PURE__*/
|
|
50510
|
+
}, /*#__PURE__*/react.exports.createElement(Typography, {
|
|
48564
50511
|
className: classes.title,
|
|
48565
50512
|
component: "div"
|
|
48566
|
-
}, "Response ", ''), /*#__PURE__*/
|
|
50513
|
+
}, "Response ", ''), /*#__PURE__*/react.exports.createElement(InputContainer, {
|
|
48567
50514
|
label: "Validation",
|
|
48568
50515
|
className: classes.selectContainer
|
|
48569
|
-
}, /*#__PURE__*/
|
|
50516
|
+
}, /*#__PURE__*/react.exports.createElement(Select, {
|
|
48570
50517
|
className: classes.select,
|
|
48571
50518
|
onChange: this.onChange('validation'),
|
|
48572
50519
|
value: validation || 'literal'
|
|
48573
|
-
}, /*#__PURE__*/
|
|
50520
|
+
}, /*#__PURE__*/react.exports.createElement(MenuItem, {
|
|
48574
50521
|
value: "literal"
|
|
48575
|
-
}, "Literal Validation"), /*#__PURE__*/
|
|
50522
|
+
}, "Literal Validation"), /*#__PURE__*/react.exports.createElement(MenuItem, {
|
|
48576
50523
|
value: "symbolic"
|
|
48577
|
-
}, "Symbolic Validation")))), validation === 'literal' && /*#__PURE__*/
|
|
50524
|
+
}, "Symbolic Validation")))), validation === 'literal' && /*#__PURE__*/react.exports.createElement("div", {
|
|
48578
50525
|
className: classes.flexContainer
|
|
48579
|
-
}, cAllowTrailingZeros.enabled && /*#__PURE__*/
|
|
50526
|
+
}, cAllowTrailingZeros.enabled && /*#__PURE__*/react.exports.createElement(FormControlLabel, {
|
|
48580
50527
|
label: cAllowTrailingZeros.label,
|
|
48581
|
-
control: /*#__PURE__*/
|
|
50528
|
+
control: /*#__PURE__*/react.exports.createElement(Checkbox, {
|
|
48582
50529
|
className: classes.customColor,
|
|
48583
50530
|
checked: allowTrailingZeros,
|
|
48584
50531
|
onChange: this.onLiteralOptionsChange('allowTrailingZeros')
|
|
48585
50532
|
})
|
|
48586
|
-
}), cIgnoreOrder.enabled && /*#__PURE__*/
|
|
50533
|
+
}), cIgnoreOrder.enabled && /*#__PURE__*/react.exports.createElement(FormControlLabel, {
|
|
48587
50534
|
label: cIgnoreOrder.label,
|
|
48588
|
-
control: /*#__PURE__*/
|
|
50535
|
+
control: /*#__PURE__*/react.exports.createElement(Checkbox, {
|
|
48589
50536
|
className: classes.customColor,
|
|
48590
50537
|
checked: ignoreOrder,
|
|
48591
50538
|
onChange: this.onLiteralOptionsChange('ignoreOrder')
|
|
48592
50539
|
})
|
|
48593
|
-
})), /*#__PURE__*/
|
|
50540
|
+
})), /*#__PURE__*/react.exports.createElement("div", {
|
|
48594
50541
|
className: classes.inputContainer
|
|
48595
|
-
}, /*#__PURE__*/
|
|
50542
|
+
}, /*#__PURE__*/react.exports.createElement(InputLabel, null, "Correct Answer"), /*#__PURE__*/react.exports.createElement(MathToolbar, {
|
|
48596
50543
|
keypadMode: mode,
|
|
48597
50544
|
classNames: classNames,
|
|
48598
50545
|
controlledKeypad: true,
|
|
@@ -48602,18 +50549,18 @@ class Response extends React$1.Component {
|
|
|
48602
50549
|
onFocus: this.onFocus,
|
|
48603
50550
|
onDone: this.onDone,
|
|
48604
50551
|
error: error && error.answer
|
|
48605
|
-
}), error && error.answer ? /*#__PURE__*/
|
|
50552
|
+
}), error && error.answer ? /*#__PURE__*/react.exports.createElement("div", {
|
|
48606
50553
|
className: classes.errorText
|
|
48607
|
-
}, error.answer) : null), hasAlternates && Object.keys(alternates).map((alternateId, altIdx) => /*#__PURE__*/
|
|
50554
|
+
}, error.answer) : null), hasAlternates && Object.keys(alternates).map((alternateId, altIdx) => /*#__PURE__*/react.exports.createElement("div", {
|
|
48608
50555
|
className: classes.inputContainer,
|
|
48609
50556
|
key: alternateId
|
|
48610
|
-
}, /*#__PURE__*/
|
|
50557
|
+
}, /*#__PURE__*/react.exports.createElement("div", {
|
|
48611
50558
|
className: classes.alternateBar
|
|
48612
|
-
}, /*#__PURE__*/
|
|
50559
|
+
}, /*#__PURE__*/react.exports.createElement(InputLabel, null, "Alternate", Object.keys(alternates).length > 1 ? ` ${altIdx + 1}` : ''), /*#__PURE__*/react.exports.createElement(Button, {
|
|
48613
50560
|
className: classes.removeAlternateButton,
|
|
48614
50561
|
type: "secondary",
|
|
48615
50562
|
onClick: this.onRemoveAlternate(alternateId)
|
|
48616
|
-
}, "Remove")), /*#__PURE__*/
|
|
50563
|
+
}, "Remove")), /*#__PURE__*/react.exports.createElement(MathToolbar, {
|
|
48617
50564
|
classNames: classNames,
|
|
48618
50565
|
controlledKeypad: true,
|
|
48619
50566
|
keypadMode: mode,
|
|
@@ -48623,9 +50570,9 @@ class Response extends React$1.Component {
|
|
|
48623
50570
|
onFocus: this.onAlternateFocus(alternateId),
|
|
48624
50571
|
onDone: this.onAlternateDone(alternateId),
|
|
48625
50572
|
error: error && error[alternateId]
|
|
48626
|
-
}), error && error[alternateId] ? /*#__PURE__*/
|
|
50573
|
+
}), error && error[alternateId] ? /*#__PURE__*/react.exports.createElement("div", {
|
|
48627
50574
|
className: classes.errorText
|
|
48628
|
-
}, error[alternateId]) : null)), /*#__PURE__*/
|
|
50575
|
+
}, error[alternateId]) : null)), /*#__PURE__*/react.exports.createElement(Button, {
|
|
48629
50576
|
className: classes.alternateButton,
|
|
48630
50577
|
type: "primary",
|
|
48631
50578
|
onClick: this.onAddAlternate
|
|
@@ -51109,7 +53056,7 @@ Object.defineProperty(createSvgIcon$1, "__esModule", {
|
|
|
51109
53056
|
});
|
|
51110
53057
|
createSvgIcon$1.default = void 0;
|
|
51111
53058
|
|
|
51112
|
-
var _react$3 = _interopRequireDefault$3(
|
|
53059
|
+
var _react$3 = _interopRequireDefault$3(react.exports);
|
|
51113
53060
|
|
|
51114
53061
|
var _pure = _interopRequireDefault$3(pure$1);
|
|
51115
53062
|
|
|
@@ -51135,7 +53082,7 @@ Object.defineProperty(Info, "__esModule", {
|
|
|
51135
53082
|
});
|
|
51136
53083
|
var default_1 = Info.default = void 0;
|
|
51137
53084
|
|
|
51138
|
-
var _react$2 = _interopRequireDefault$2(
|
|
53085
|
+
var _react$2 = _interopRequireDefault$2(react.exports);
|
|
51139
53086
|
|
|
51140
53087
|
var _createSvgIcon = _interopRequireDefault$2(createSvgIcon$1);
|
|
51141
53088
|
|
|
@@ -53800,7 +55747,7 @@ var _inherits2$1 = _interopRequireDefault$1(inherits.exports);
|
|
|
53800
55747
|
|
|
53801
55748
|
var _assertThisInitialized2 = _interopRequireDefault$1(assertThisInitialized.exports);
|
|
53802
55749
|
|
|
53803
|
-
var _react$1 = _interopRequireDefault$1(
|
|
55750
|
+
var _react$1 = _interopRequireDefault$1(react.exports);
|
|
53804
55751
|
|
|
53805
55752
|
var _reactDom = _interopRequireDefault$1(reactDom.exports);
|
|
53806
55753
|
|
|
@@ -54124,7 +56071,7 @@ var _inherits2 = _interopRequireDefault(inherits.exports);
|
|
|
54124
56071
|
|
|
54125
56072
|
var _defineProperty2 = _interopRequireDefault(defineProperty$3.exports);
|
|
54126
56073
|
|
|
54127
|
-
var _react = _interopRequireDefault(
|
|
56074
|
+
var _react = _interopRequireDefault(react.exports);
|
|
54128
56075
|
|
|
54129
56076
|
var _propTypes = _interopRequireDefault(propTypes.exports);
|
|
54130
56077
|
|
|
@@ -54770,7 +56717,7 @@ function prepareForModel(expression) {
|
|
|
54770
56717
|
}
|
|
54771
56718
|
}
|
|
54772
56719
|
|
|
54773
|
-
class GeneralConfigBlock extends
|
|
56720
|
+
class GeneralConfigBlock extends react.exports.Component {
|
|
54774
56721
|
constructor(props) {
|
|
54775
56722
|
super(props);
|
|
54776
56723
|
|
|
@@ -55005,7 +56952,7 @@ class GeneralConfigBlock extends React$1.Component {
|
|
|
55005
56952
|
mathToolbar: classes.mathToolbar
|
|
55006
56953
|
};
|
|
55007
56954
|
const responsesToUse = responseType === ResponseTypes.advanced ? responses : responses.slice(0, 1);
|
|
55008
|
-
const validationTooltip = /*#__PURE__*/
|
|
56955
|
+
const validationTooltip = /*#__PURE__*/react.exports.createElement(Tooltip, {
|
|
55009
56956
|
classes: {
|
|
55010
56957
|
tooltip: classes.tooltip
|
|
55011
56958
|
},
|
|
@@ -55013,20 +56960,20 @@ class GeneralConfigBlock extends React$1.Component {
|
|
|
55013
56960
|
disableTouchListener: true,
|
|
55014
56961
|
placement: 'right',
|
|
55015
56962
|
title: validationMessage
|
|
55016
|
-
}, /*#__PURE__*/
|
|
56963
|
+
}, /*#__PURE__*/react.exports.createElement(default_1, {
|
|
55017
56964
|
fontSize: 'small',
|
|
55018
56965
|
color: 'primary',
|
|
55019
56966
|
style: {
|
|
55020
56967
|
marginLeft: '5px'
|
|
55021
56968
|
}
|
|
55022
56969
|
}));
|
|
55023
|
-
return /*#__PURE__*/
|
|
56970
|
+
return /*#__PURE__*/react.exports.createElement("div", {
|
|
55024
56971
|
ref: r => this.root = r || this.root,
|
|
55025
56972
|
className: classes.container
|
|
55026
|
-
}, promptEnabled && /*#__PURE__*/
|
|
56973
|
+
}, promptEnabled && /*#__PURE__*/react.exports.createElement(InputContainer, {
|
|
55027
56974
|
label: cPrompt.label,
|
|
55028
56975
|
className: classes.promptHolder
|
|
55029
|
-
}, /*#__PURE__*/
|
|
56976
|
+
}, /*#__PURE__*/react.exports.createElement(EditableHtml, {
|
|
55030
56977
|
onFocus: this.onPromptFocus,
|
|
55031
56978
|
className: classes.prompt,
|
|
55032
56979
|
markup: prompt || '',
|
|
@@ -55046,55 +56993,55 @@ class GeneralConfigBlock extends React$1.Component {
|
|
|
55046
56993
|
language: 'special'
|
|
55047
56994
|
}],
|
|
55048
56995
|
mathMlOptions: mathMlOptions
|
|
55049
|
-
}), promptError && /*#__PURE__*/
|
|
56996
|
+
}), promptError && /*#__PURE__*/react.exports.createElement("div", {
|
|
55050
56997
|
className: classes.errorText
|
|
55051
|
-
}, promptError)), responseType === ResponseTypes.advanced && /*#__PURE__*/
|
|
56998
|
+
}, promptError)), responseType === ResponseTypes.advanced && /*#__PURE__*/react.exports.createElement("div", {
|
|
55052
56999
|
className: classes.advancedResponse
|
|
55053
|
-
}, /*#__PURE__*/
|
|
57000
|
+
}, /*#__PURE__*/react.exports.createElement("div", {
|
|
55054
57001
|
className: classes.flexContainer,
|
|
55055
57002
|
style: {
|
|
55056
57003
|
justifyContent: 'flex-start'
|
|
55057
57004
|
}
|
|
55058
|
-
}, /*#__PURE__*/
|
|
57005
|
+
}, /*#__PURE__*/react.exports.createElement("div", {
|
|
55059
57006
|
className: classes.title
|
|
55060
|
-
}, "Define Response"), validationTooltip), /*#__PURE__*/
|
|
57007
|
+
}, "Define Response"), validationTooltip), /*#__PURE__*/react.exports.createElement(InputContainer, {
|
|
55061
57008
|
key: "templateEditorType",
|
|
55062
57009
|
label: "Response Template Equation Editor",
|
|
55063
57010
|
className: classes.selectContainer
|
|
55064
|
-
}, /*#__PURE__*/
|
|
57011
|
+
}, /*#__PURE__*/react.exports.createElement(Select, {
|
|
55065
57012
|
className: classes.select,
|
|
55066
57013
|
onChange: this.onChange('promptEquationEditor'),
|
|
55067
57014
|
value: promptEquationEditor
|
|
55068
|
-
}, /*#__PURE__*/
|
|
57015
|
+
}, /*#__PURE__*/react.exports.createElement(MenuItem, {
|
|
55069
57016
|
value: "non-negative-integers"
|
|
55070
|
-
}, "Numeric - Non-Negative Integers"), /*#__PURE__*/
|
|
57017
|
+
}, "Numeric - Non-Negative Integers"), /*#__PURE__*/react.exports.createElement(MenuItem, {
|
|
55071
57018
|
value: "integers"
|
|
55072
|
-
}, "Numeric - Integers"), /*#__PURE__*/
|
|
57019
|
+
}, "Numeric - Integers"), /*#__PURE__*/react.exports.createElement(MenuItem, {
|
|
55073
57020
|
value: "decimals"
|
|
55074
|
-
}, "Numeric - Decimals"), /*#__PURE__*/
|
|
57021
|
+
}, "Numeric - Decimals"), /*#__PURE__*/react.exports.createElement(MenuItem, {
|
|
55075
57022
|
value: "fractions"
|
|
55076
|
-
}, "Numeric - Fractions"), /*#__PURE__*/
|
|
57023
|
+
}, "Numeric - Fractions"), /*#__PURE__*/react.exports.createElement(MenuItem, {
|
|
55077
57024
|
value: 1
|
|
55078
|
-
}, "Grade 1 - 2"), /*#__PURE__*/
|
|
57025
|
+
}, "Grade 1 - 2"), /*#__PURE__*/react.exports.createElement(MenuItem, {
|
|
55079
57026
|
value: 3
|
|
55080
|
-
}, "Grade 3 - 5"), /*#__PURE__*/
|
|
57027
|
+
}, "Grade 3 - 5"), /*#__PURE__*/react.exports.createElement(MenuItem, {
|
|
55081
57028
|
value: 6
|
|
55082
|
-
}, "Grade 6 - 7"), /*#__PURE__*/
|
|
57029
|
+
}, "Grade 6 - 7"), /*#__PURE__*/react.exports.createElement(MenuItem, {
|
|
55083
57030
|
value: 8
|
|
55084
|
-
}, "Grade 8 - HS"), /*#__PURE__*/
|
|
57031
|
+
}, "Grade 8 - HS"), /*#__PURE__*/react.exports.createElement(MenuItem, {
|
|
55085
57032
|
value: 'geometry'
|
|
55086
|
-
}, "Geometry"), /*#__PURE__*/
|
|
57033
|
+
}, "Geometry"), /*#__PURE__*/react.exports.createElement(MenuItem, {
|
|
55087
57034
|
value: 'advanced-algebra'
|
|
55088
|
-
}, "Advanced Algebra"), /*#__PURE__*/
|
|
57035
|
+
}, "Advanced Algebra"), /*#__PURE__*/react.exports.createElement(MenuItem, {
|
|
55089
57036
|
value: 'statistics'
|
|
55090
|
-
}, "Statistics"), /*#__PURE__*/
|
|
57037
|
+
}, "Statistics"), /*#__PURE__*/react.exports.createElement(MenuItem, {
|
|
55091
57038
|
value: 'item-authoring'
|
|
55092
|
-
}, "Item Authoring"))), /*#__PURE__*/
|
|
57039
|
+
}, "Item Authoring"))), /*#__PURE__*/react.exports.createElement("div", {
|
|
55093
57040
|
className: classes.responseTemplate,
|
|
55094
57041
|
key: "templateHolder"
|
|
55095
|
-
}, /*#__PURE__*/
|
|
57042
|
+
}, /*#__PURE__*/react.exports.createElement(InputLabel, {
|
|
55096
57043
|
className: classes.templateTitle
|
|
55097
|
-
}, "RESPONSE TEMPLATE"), /*#__PURE__*/
|
|
57044
|
+
}, "RESPONSE TEMPLATE"), /*#__PURE__*/react.exports.createElement(MathToolbar, {
|
|
55098
57045
|
classNames: classNames,
|
|
55099
57046
|
allowAnswerBlock: true,
|
|
55100
57047
|
keypadMode: promptEquationEditor,
|
|
@@ -55106,47 +57053,47 @@ class GeneralConfigBlock extends React$1.Component {
|
|
|
55106
57053
|
onDone: this.onDone,
|
|
55107
57054
|
maxResponseAreas: maxResponseAreas,
|
|
55108
57055
|
error: responseAreasError
|
|
55109
|
-
})), responseAreasError && /*#__PURE__*/
|
|
57056
|
+
})), responseAreasError && /*#__PURE__*/react.exports.createElement("div", {
|
|
55110
57057
|
className: classes.errorText
|
|
55111
|
-
}, responseAreasError)), /*#__PURE__*/
|
|
57058
|
+
}, responseAreasError)), /*#__PURE__*/react.exports.createElement("div", {
|
|
55112
57059
|
className: classes.flexContainer,
|
|
55113
57060
|
style: {
|
|
55114
57061
|
justifyContent: 'flex-start'
|
|
55115
57062
|
}
|
|
55116
|
-
}, /*#__PURE__*/
|
|
57063
|
+
}, /*#__PURE__*/react.exports.createElement("div", {
|
|
55117
57064
|
className: classes.title
|
|
55118
|
-
}, "Define Correct Response"), responseType === ResponseTypes.simple ? validationTooltip : null), /*#__PURE__*/
|
|
57065
|
+
}, "Define Correct Response"), responseType === ResponseTypes.simple ? validationTooltip : null), /*#__PURE__*/react.exports.createElement(InputContainer, {
|
|
55119
57066
|
label: "Equation Editor",
|
|
55120
57067
|
className: classes.selectContainer
|
|
55121
|
-
}, /*#__PURE__*/
|
|
57068
|
+
}, /*#__PURE__*/react.exports.createElement(Select, {
|
|
55122
57069
|
className: classes.select,
|
|
55123
57070
|
onChange: this.onChange('equationEditor'),
|
|
55124
57071
|
value: equationEditor
|
|
55125
|
-
}, /*#__PURE__*/
|
|
57072
|
+
}, /*#__PURE__*/react.exports.createElement(MenuItem, {
|
|
55126
57073
|
value: "non-negative-integers"
|
|
55127
|
-
}, "Numeric - Non-Negative Integers"), /*#__PURE__*/
|
|
57074
|
+
}, "Numeric - Non-Negative Integers"), /*#__PURE__*/react.exports.createElement(MenuItem, {
|
|
55128
57075
|
value: "integers"
|
|
55129
|
-
}, "Numeric - Integers"), /*#__PURE__*/
|
|
57076
|
+
}, "Numeric - Integers"), /*#__PURE__*/react.exports.createElement(MenuItem, {
|
|
55130
57077
|
value: "decimals"
|
|
55131
|
-
}, "Numeric - Decimals"), /*#__PURE__*/
|
|
57078
|
+
}, "Numeric - Decimals"), /*#__PURE__*/react.exports.createElement(MenuItem, {
|
|
55132
57079
|
value: "fractions"
|
|
55133
|
-
}, "Numeric - Fractions"), /*#__PURE__*/
|
|
57080
|
+
}, "Numeric - Fractions"), /*#__PURE__*/react.exports.createElement(MenuItem, {
|
|
55134
57081
|
value: 1
|
|
55135
|
-
}, "Grade 1 - 2"), /*#__PURE__*/
|
|
57082
|
+
}, "Grade 1 - 2"), /*#__PURE__*/react.exports.createElement(MenuItem, {
|
|
55136
57083
|
value: 3
|
|
55137
|
-
}, "Grade 3 - 5"), /*#__PURE__*/
|
|
57084
|
+
}, "Grade 3 - 5"), /*#__PURE__*/react.exports.createElement(MenuItem, {
|
|
55138
57085
|
value: 6
|
|
55139
|
-
}, "Grade 6 - 7"), /*#__PURE__*/
|
|
57086
|
+
}, "Grade 6 - 7"), /*#__PURE__*/react.exports.createElement(MenuItem, {
|
|
55140
57087
|
value: 8
|
|
55141
|
-
}, "Grade 8 - HS"), /*#__PURE__*/
|
|
57088
|
+
}, "Grade 8 - HS"), /*#__PURE__*/react.exports.createElement(MenuItem, {
|
|
55142
57089
|
value: 'geometry'
|
|
55143
|
-
}, "Geometry"), /*#__PURE__*/
|
|
57090
|
+
}, "Geometry"), /*#__PURE__*/react.exports.createElement(MenuItem, {
|
|
55144
57091
|
value: 'advanced-algebra'
|
|
55145
|
-
}, "Advanced Algebra"), /*#__PURE__*/
|
|
57092
|
+
}, "Advanced Algebra"), /*#__PURE__*/react.exports.createElement(MenuItem, {
|
|
55146
57093
|
value: 'statistics'
|
|
55147
|
-
}, "Statistics"), /*#__PURE__*/
|
|
57094
|
+
}, "Statistics"), /*#__PURE__*/react.exports.createElement(MenuItem, {
|
|
55148
57095
|
value: 'item-authoring'
|
|
55149
|
-
}, "Item Authoring"))), responsesToUse.map((response, idx) => /*#__PURE__*/
|
|
57096
|
+
}, "Item Authoring"))), responsesToUse.map((response, idx) => /*#__PURE__*/react.exports.createElement(Response$1, {
|
|
55150
57097
|
key: response.id,
|
|
55151
57098
|
mode: equationEditor,
|
|
55152
57099
|
response: response,
|
|
@@ -55156,10 +57103,10 @@ class GeneralConfigBlock extends React$1.Component {
|
|
|
55156
57103
|
cIgnoreOrder: cIgnoreOrder,
|
|
55157
57104
|
cAllowTrailingZeros: cAllowTrailingZeros,
|
|
55158
57105
|
error: responsesErrors && responsesErrors[idx]
|
|
55159
|
-
})), rationaleEnabled && /*#__PURE__*/
|
|
57106
|
+
})), rationaleEnabled && /*#__PURE__*/react.exports.createElement(InputContainer, {
|
|
55160
57107
|
label: cRationale.label,
|
|
55161
57108
|
className: classes.promptHolder
|
|
55162
|
-
}, /*#__PURE__*/
|
|
57109
|
+
}, /*#__PURE__*/react.exports.createElement(EditableHtml, {
|
|
55163
57110
|
className: classes.prompt,
|
|
55164
57111
|
markup: rationale || '',
|
|
55165
57112
|
onChange: this.onChange('rationale'),
|
|
@@ -55182,7 +57129,7 @@ class GeneralConfigBlock extends React$1.Component {
|
|
|
55182
57129
|
language: 'special'
|
|
55183
57130
|
}],
|
|
55184
57131
|
mathMlOptions: mathMlOptions
|
|
55185
|
-
}), rationaleError && /*#__PURE__*/
|
|
57132
|
+
}), rationaleError && /*#__PURE__*/react.exports.createElement("div", {
|
|
55186
57133
|
className: classes.errorText
|
|
55187
57134
|
}, rationaleError)));
|
|
55188
57135
|
}
|
|
@@ -55223,7 +57170,7 @@ const styles = theme => ({
|
|
|
55223
57170
|
}
|
|
55224
57171
|
});
|
|
55225
57172
|
|
|
55226
|
-
class Configure extends
|
|
57173
|
+
class Configure extends React$1.Component {
|
|
55227
57174
|
constructor(...args) {
|
|
55228
57175
|
super(...args);
|
|
55229
57176
|
|
|
@@ -55314,11 +57261,11 @@ class Configure extends React__default.Component {
|
|
|
55314
57261
|
'allowTrailingZeros.enabled': allowTrailingZeros.settings && toggle(allowTrailingZeros.label),
|
|
55315
57262
|
rubricEnabled: (withRubric == null ? void 0 : withRubric.settings) && toggle(withRubric == null ? void 0 : withRubric.label)
|
|
55316
57263
|
};
|
|
55317
|
-
return /*#__PURE__*/
|
|
57264
|
+
return /*#__PURE__*/React$1.createElement(layout.ConfigLayout, {
|
|
55318
57265
|
extraCSSRules: extraCSSRules,
|
|
55319
57266
|
dimensions: contentDimensions,
|
|
55320
57267
|
hideSettings: settingsPanelDisabled,
|
|
55321
|
-
settings: /*#__PURE__*/
|
|
57268
|
+
settings: /*#__PURE__*/React$1.createElement(Panel, {
|
|
55322
57269
|
model: model,
|
|
55323
57270
|
configuration: configuration,
|
|
55324
57271
|
onChangeModel: model => onModelChanged(model),
|
|
@@ -55328,10 +57275,10 @@ class Configure extends React__default.Component {
|
|
|
55328
57275
|
Properties: panelProperties
|
|
55329
57276
|
}
|
|
55330
57277
|
})
|
|
55331
|
-
}, teacherInstructionsEnabled && /*#__PURE__*/
|
|
57278
|
+
}, teacherInstructionsEnabled && /*#__PURE__*/React$1.createElement(InputContainer, {
|
|
55332
57279
|
label: teacherInstructions.label,
|
|
55333
57280
|
className: classes.promptHolder
|
|
55334
|
-
}, /*#__PURE__*/
|
|
57281
|
+
}, /*#__PURE__*/React$1.createElement(EditableHtml, {
|
|
55335
57282
|
className: classes.prompt,
|
|
55336
57283
|
markup: model.teacherInstructions || '',
|
|
55337
57284
|
onChange: this.changeTeacherInstructions,
|
|
@@ -55350,9 +57297,9 @@ class Configure extends React__default.Component {
|
|
|
55350
57297
|
language: 'special'
|
|
55351
57298
|
}],
|
|
55352
57299
|
mathMlOptions: mathMlOptions
|
|
55353
|
-
}), teacherInstructionsError && /*#__PURE__*/
|
|
57300
|
+
}), teacherInstructionsError && /*#__PURE__*/React$1.createElement("div", {
|
|
55354
57301
|
className: classes.errorText
|
|
55355
|
-
}, teacherInstructionsError)), /*#__PURE__*/
|
|
57302
|
+
}, teacherInstructionsError)), /*#__PURE__*/React$1.createElement(GeneralConfigBlock$1, {
|
|
55356
57303
|
imageSupport: imageSupport,
|
|
55357
57304
|
uploadSoundSupport: uploadSoundSupport,
|
|
55358
57305
|
model: model,
|
|
@@ -55362,7 +57309,7 @@ class Configure extends React__default.Component {
|
|
|
55362
57309
|
promptEnabled: promptEnabled,
|
|
55363
57310
|
toolbarOpts: toolbarOpts,
|
|
55364
57311
|
spellCheck: spellCheckEnabled
|
|
55365
|
-
}), feedbackEnabled && /*#__PURE__*/
|
|
57312
|
+
}), feedbackEnabled && /*#__PURE__*/React$1.createElement(FeedbackConfig, {
|
|
55366
57313
|
feedback: model.feedback,
|
|
55367
57314
|
onChange: this.onFeedbackChange,
|
|
55368
57315
|
toolbarOpts: toolbarOpts
|
|
@@ -55729,7 +57676,7 @@ class MathInlineConfigure extends HTMLElement {
|
|
|
55729
57676
|
|
|
55730
57677
|
_render() {
|
|
55731
57678
|
if (this._model) {
|
|
55732
|
-
const el = /*#__PURE__*/
|
|
57679
|
+
const el = /*#__PURE__*/React$1.createElement(Configure$1, {
|
|
55733
57680
|
onModelChanged: this.onModelChanged.bind(this),
|
|
55734
57681
|
onConfigurationChanged: this.onConfigurationChanged.bind(this),
|
|
55735
57682
|
model: this._model,
|