@pie-element/math-inline 10.0.1-esmbeta.1 → 10.0.1-esmbeta.2
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 +7 -7
- package/controller/package.json +3 -3
- package/esm/configure.js +329 -2276
- 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 +8 -8
package/esm/configure.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import React__default from 'react';
|
|
1
3
|
import { InputContainer, layout, FeedbackConfig, settings } from '@pie-lib/config-ui';
|
|
2
4
|
import EditableHtml from '@pie-lib/editable-html';
|
|
3
5
|
import { MathToolbar } from '@pie-lib/math-toolbar';
|
|
@@ -44,2163 +46,99 @@ function getAugmentedNamespace(n) {
|
|
|
44
46
|
return a;
|
|
45
47
|
}
|
|
46
48
|
|
|
47
|
-
var
|
|
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
|
-
*/
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
function mapChildren(children, func, context) {
|
|
1471
|
-
if (children == null) {
|
|
1472
|
-
return children;
|
|
1473
|
-
}
|
|
1474
|
-
|
|
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
|
-
*/
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
function countChildren(children) {
|
|
1491
|
-
return traverseAllChildren(children, function () {
|
|
1492
|
-
return null;
|
|
1493
|
-
}, null);
|
|
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
|
-
*/
|
|
1501
|
-
|
|
1502
|
-
|
|
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
|
-
*/
|
|
1524
|
-
|
|
1525
|
-
|
|
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
|
-
}
|
|
1532
|
-
|
|
1533
|
-
return children;
|
|
1534
|
-
}
|
|
1535
|
-
|
|
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;
|
|
1642
|
-
}
|
|
1643
|
-
|
|
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
|
-
};
|
|
1652
|
-
|
|
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.');
|
|
1665
|
-
|
|
1666
|
-
defaultProps = newDefaultProps; // Match production behavior more closely:
|
|
1667
|
-
|
|
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.');
|
|
1680
|
-
|
|
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.)
|
|
49
|
+
var reactDom = {exports: {}};
|
|
2080
50
|
|
|
51
|
+
var reactDom_production_min = {};
|
|
2081
52
|
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
53
|
+
/*
|
|
54
|
+
object-assign
|
|
55
|
+
(c) Sindre Sorhus
|
|
56
|
+
@license MIT
|
|
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;
|
|
2087
62
|
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
}
|
|
63
|
+
function toObject(val) {
|
|
64
|
+
if (val === null || val === undefined) {
|
|
65
|
+
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
66
|
+
}
|
|
2093
67
|
|
|
2094
|
-
|
|
68
|
+
return Object(val);
|
|
2095
69
|
}
|
|
2096
|
-
var didWarnAboutDeprecatedCreateFactory = false;
|
|
2097
|
-
function createFactoryWithValidation(type) {
|
|
2098
|
-
var validatedFactory = createElementWithValidation.bind(null, type);
|
|
2099
|
-
validatedFactory.type = type;
|
|
2100
70
|
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
71
|
+
function shouldUseNative() {
|
|
72
|
+
try {
|
|
73
|
+
if (!Object.assign) {
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
2104
76
|
|
|
2105
|
-
|
|
2106
|
-
} // Legacy hook: remove it
|
|
77
|
+
// Detect buggy property enumeration order in older V8 versions.
|
|
2107
78
|
|
|
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
|
+
}
|
|
2108
85
|
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
86
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
87
|
+
var test2 = {};
|
|
88
|
+
for (var i = 0; i < 10; i++) {
|
|
89
|
+
test2['_' + String.fromCharCode(i)] = i;
|
|
90
|
+
}
|
|
91
|
+
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
92
|
+
return test2[n];
|
|
93
|
+
});
|
|
94
|
+
if (order2.join('') !== '0123456789') {
|
|
95
|
+
return false;
|
|
96
|
+
}
|
|
2113
97
|
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
98
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
99
|
+
var test3 = {};
|
|
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
|
+
}
|
|
2121
107
|
|
|
2122
|
-
|
|
108
|
+
return true;
|
|
109
|
+
} catch (err) {
|
|
110
|
+
// We don't expect any of the above to throw, but better to be safe.
|
|
111
|
+
return false;
|
|
112
|
+
}
|
|
2123
113
|
}
|
|
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
114
|
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
115
|
+
var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
|
|
116
|
+
var from;
|
|
117
|
+
var to = toObject(target);
|
|
118
|
+
var symbols;
|
|
2134
119
|
|
|
2135
|
-
{
|
|
120
|
+
for (var s = 1; s < arguments.length; s++) {
|
|
121
|
+
from = Object(arguments[s]);
|
|
2136
122
|
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
// TODO: we can remove these if Rollup fixes the bug.
|
|
123
|
+
for (var key in from) {
|
|
124
|
+
if (hasOwnProperty$b.call(from, key)) {
|
|
125
|
+
to[key] = from[key];
|
|
126
|
+
}
|
|
127
|
+
}
|
|
2143
128
|
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
129
|
+
if (getOwnPropertySymbols$1) {
|
|
130
|
+
symbols = getOwnPropertySymbols$1(from);
|
|
131
|
+
for (var i = 0; i < symbols.length; i++) {
|
|
132
|
+
if (propIsEnumerable.call(from, symbols[i])) {
|
|
133
|
+
to[symbols[i]] = from[symbols[i]];
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
2149
138
|
|
|
2150
|
-
|
|
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
|
|
139
|
+
return to;
|
|
2159
140
|
};
|
|
2160
141
|
|
|
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
|
-
|
|
2204
142
|
var scheduler = {exports: {}};
|
|
2205
143
|
|
|
2206
144
|
var scheduler_production_min = {};
|
|
@@ -3101,7 +1039,7 @@ if (process.env.NODE_ENV === 'production') {
|
|
|
3101
1039
|
* This source code is licensed under the MIT license found in the
|
|
3102
1040
|
* LICENSE file in the root directory of this source tree.
|
|
3103
1041
|
*/
|
|
3104
|
-
var aa=
|
|
1042
|
+
var aa=React__default,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));
|
|
3105
1043
|
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;
|
|
3106
1044
|
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={};
|
|
3107
1045
|
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));}}}}
|
|
@@ -3384,6 +1322,121 @@ reactDom_production_min.unstable_renderSubtreeIntoContainer=function(a,b,c,d){if
|
|
|
3384
1322
|
|
|
3385
1323
|
var reactDom_development = {};
|
|
3386
1324
|
|
|
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
|
+
|
|
3387
1440
|
var tracing = {exports: {}};
|
|
3388
1441
|
|
|
3389
1442
|
var schedulerTracing_production_min = {};
|
|
@@ -3770,7 +1823,7 @@ if (process.env.NODE_ENV === 'production') {
|
|
|
3770
1823
|
if (process.env.NODE_ENV !== "production") {
|
|
3771
1824
|
(function() {
|
|
3772
1825
|
|
|
3773
|
-
var React =
|
|
1826
|
+
var React = React__default;
|
|
3774
1827
|
var _assign = objectAssign;
|
|
3775
1828
|
var Scheduler = scheduler.exports;
|
|
3776
1829
|
var checkPropTypes = checkPropTypes_1;
|
|
@@ -35780,7 +33833,7 @@ var _getPrototypeOf2$b = _interopRequireDefault$11(getPrototypeOf$1.exports);
|
|
|
35780
33833
|
|
|
35781
33834
|
var _inherits2$k = _interopRequireDefault$11(inherits.exports);
|
|
35782
33835
|
|
|
35783
|
-
var _react$R = _interopRequireDefault$11(
|
|
33836
|
+
var _react$R = _interopRequireDefault$11(React__default);
|
|
35784
33837
|
|
|
35785
33838
|
var _propTypes$F = _interopRequireDefault$11(propTypes.exports);
|
|
35786
33839
|
|
|
@@ -36284,7 +34337,7 @@ var _inherits2$j = _interopRequireDefault$_(inherits.exports);
|
|
|
36284
34337
|
|
|
36285
34338
|
var _objectWithoutProperties2$z = _interopRequireDefault$_(objectWithoutProperties.exports);
|
|
36286
34339
|
|
|
36287
|
-
var _react$Q = _interopRequireDefault$_(
|
|
34340
|
+
var _react$Q = _interopRequireDefault$_(React__default);
|
|
36288
34341
|
|
|
36289
34342
|
var _propTypes$E = _interopRequireDefault$_(propTypes.exports);
|
|
36290
34343
|
|
|
@@ -36675,7 +34728,7 @@ var _getPrototypeOf2$9 = _interopRequireDefault$Z(getPrototypeOf$1.exports);
|
|
|
36675
34728
|
|
|
36676
34729
|
var _inherits2$i = _interopRequireDefault$Z(inherits.exports);
|
|
36677
34730
|
|
|
36678
|
-
var _react$P = _interopRequireDefault$Z(
|
|
34731
|
+
var _react$P = _interopRequireDefault$Z(React__default);
|
|
36679
34732
|
|
|
36680
34733
|
var _propTypes$D = _interopRequireDefault$Z(propTypes.exports);
|
|
36681
34734
|
|
|
@@ -37551,7 +35604,7 @@ Object.defineProperty(FormControlContext$1, "__esModule", {
|
|
|
37551
35604
|
});
|
|
37552
35605
|
FormControlContext$1.default = void 0;
|
|
37553
35606
|
|
|
37554
|
-
var _react$O = _interopRequireDefault$Y(
|
|
35607
|
+
var _react$O = _interopRequireDefault$Y(React__default);
|
|
37555
35608
|
|
|
37556
35609
|
/**
|
|
37557
35610
|
* @ignore - internal component.
|
|
@@ -37570,7 +35623,7 @@ withFormControlContext$1.default = withFormControlContext;
|
|
|
37570
35623
|
|
|
37571
35624
|
var _extends2$y = _interopRequireDefault$X(_extends$3.exports);
|
|
37572
35625
|
|
|
37573
|
-
var _react$N = _interopRequireDefault$X(
|
|
35626
|
+
var _react$N = _interopRequireDefault$X(React__default);
|
|
37574
35627
|
|
|
37575
35628
|
var _hoistNonReactStatics = _interopRequireDefault$X(hoistNonReactStatics_cjs);
|
|
37576
35629
|
|
|
@@ -37612,7 +35665,7 @@ var _defineProperty2$l = _interopRequireDefault$W(defineProperty$3.exports);
|
|
|
37612
35665
|
|
|
37613
35666
|
var _objectWithoutProperties2$x = _interopRequireDefault$W(objectWithoutProperties.exports);
|
|
37614
35667
|
|
|
37615
|
-
var _react$M = _interopRequireDefault$W(
|
|
35668
|
+
var _react$M = _interopRequireDefault$W(React__default);
|
|
37616
35669
|
|
|
37617
35670
|
var _propTypes$C = _interopRequireDefault$W(propTypes.exports);
|
|
37618
35671
|
|
|
@@ -37789,7 +35842,7 @@ var _defineProperty2$k = _interopRequireDefault$V(defineProperty$3.exports);
|
|
|
37789
35842
|
|
|
37790
35843
|
var _objectWithoutProperties2$w = _interopRequireDefault$V(objectWithoutProperties.exports);
|
|
37791
35844
|
|
|
37792
|
-
var _react$L = _interopRequireDefault$V(
|
|
35845
|
+
var _react$L = _interopRequireDefault$V(React__default);
|
|
37793
35846
|
|
|
37794
35847
|
var _propTypes$B = _interopRequireDefault$V(propTypes.exports);
|
|
37795
35848
|
|
|
@@ -38250,7 +36303,7 @@ var _inherits = _interopDefault(inherits.exports);
|
|
|
38250
36303
|
var _typeof = _interopDefault(_typeof$2.exports);
|
|
38251
36304
|
var _objectWithoutProperties = _interopDefault(objectWithoutProperties.exports);
|
|
38252
36305
|
var _extends$1 = _interopDefault(_extends$3.exports);
|
|
38253
|
-
var React = _interopDefault(
|
|
36306
|
+
var React = _interopDefault(React__default);
|
|
38254
36307
|
var PropTypes$2 = _interopDefault(propTypes.exports);
|
|
38255
36308
|
var warning = _interopDefault(warning_1);
|
|
38256
36309
|
|
|
@@ -38565,7 +36618,7 @@ reactHelpers.cloneChildrenWithClassName = cloneChildrenWithClassName;
|
|
|
38565
36618
|
reactHelpers.isMuiElement = isMuiElement;
|
|
38566
36619
|
reactHelpers.setRef = setRef;
|
|
38567
36620
|
|
|
38568
|
-
var _react$K = _interopRequireDefault$S(
|
|
36621
|
+
var _react$K = _interopRequireDefault$S(React__default);
|
|
38569
36622
|
|
|
38570
36623
|
var _classnames$o = _interopRequireDefault$S(classnames.exports);
|
|
38571
36624
|
|
|
@@ -38610,7 +36663,7 @@ var _getPrototypeOf2$8 = _interopRequireDefault$R(getPrototypeOf$1.exports);
|
|
|
38610
36663
|
|
|
38611
36664
|
var _inherits2$h = _interopRequireDefault$R(inherits.exports);
|
|
38612
36665
|
|
|
38613
|
-
var _react$J = _interopRequireDefault$R(
|
|
36666
|
+
var _react$J = _interopRequireDefault$R(React__default);
|
|
38614
36667
|
|
|
38615
36668
|
var _reactDom$9 = _interopRequireDefault$R(reactDom.exports);
|
|
38616
36669
|
|
|
@@ -38753,7 +36806,7 @@ var _getPrototypeOf3$8 = _interopRequireDefault$Q(getPrototypeOf$1.exports);
|
|
|
38753
36806
|
|
|
38754
36807
|
var _inherits2$g = _interopRequireDefault$Q(inherits.exports);
|
|
38755
36808
|
|
|
38756
|
-
var _react$I = _interopRequireDefault$Q(
|
|
36809
|
+
var _react$I = _interopRequireDefault$Q(React__default);
|
|
38757
36810
|
|
|
38758
36811
|
var _reactDom$8 = _interopRequireDefault$Q(reactDom.exports);
|
|
38759
36812
|
|
|
@@ -39745,7 +37798,7 @@ Transition$1.default = Transition$1.EXITING = Transition$1.ENTERED = Transition$
|
|
|
39745
37798
|
|
|
39746
37799
|
var PropTypes = _interopRequireWildcard(propTypes.exports);
|
|
39747
37800
|
|
|
39748
|
-
var _react$H = _interopRequireDefault$L(
|
|
37801
|
+
var _react$H = _interopRequireDefault$L(React__default);
|
|
39749
37802
|
|
|
39750
37803
|
var _reactDom$7 = _interopRequireDefault$L(reactDom.exports);
|
|
39751
37804
|
|
|
@@ -40393,7 +38446,7 @@ var _getPrototypeOf3$7 = _interopRequireDefault$K(getPrototypeOf$1.exports);
|
|
|
40393
38446
|
|
|
40394
38447
|
var _inherits2$f = _interopRequireDefault$K(inherits.exports);
|
|
40395
38448
|
|
|
40396
|
-
var _react$G = _interopRequireDefault$K(
|
|
38449
|
+
var _react$G = _interopRequireDefault$K(React__default);
|
|
40397
38450
|
|
|
40398
38451
|
var _propTypes$x = _interopRequireDefault$K(propTypes.exports);
|
|
40399
38452
|
|
|
@@ -40576,7 +38629,7 @@ var _defineProperty2$j = _interopRequireDefault$J(defineProperty$3.exports);
|
|
|
40576
38629
|
|
|
40577
38630
|
var _objectWithoutProperties2$u = _interopRequireDefault$J(objectWithoutProperties.exports);
|
|
40578
38631
|
|
|
40579
|
-
var _react$F = _interopRequireDefault$J(
|
|
38632
|
+
var _react$F = _interopRequireDefault$J(React__default);
|
|
40580
38633
|
|
|
40581
38634
|
var _propTypes$w = _interopRequireDefault$J(propTypes.exports);
|
|
40582
38635
|
|
|
@@ -40709,7 +38762,7 @@ var _inherits2$e = _interopRequireDefault$I(inherits.exports);
|
|
|
40709
38762
|
|
|
40710
38763
|
var _assertThisInitialized2$3 = _interopRequireDefault$I(assertThisInitialized.exports);
|
|
40711
38764
|
|
|
40712
|
-
var _react$E = _interopRequireDefault$I(
|
|
38765
|
+
var _react$E = _interopRequireDefault$I(React__default);
|
|
40713
38766
|
|
|
40714
38767
|
var _reactDom$6 = _interopRequireDefault$I(reactDom.exports);
|
|
40715
38768
|
|
|
@@ -41286,7 +39339,7 @@ var _getPrototypeOf3$6 = _interopRequireDefault$H(getPrototypeOf$1.exports);
|
|
|
41286
39339
|
|
|
41287
39340
|
var _inherits2$d = _interopRequireDefault$H(inherits.exports);
|
|
41288
39341
|
|
|
41289
|
-
var _react$D = _interopRequireDefault$H(
|
|
39342
|
+
var _react$D = _interopRequireDefault$H(React__default);
|
|
41290
39343
|
|
|
41291
39344
|
var _propTypes$u = _interopRequireDefault$H(propTypes.exports);
|
|
41292
39345
|
|
|
@@ -41534,7 +39587,7 @@ var _objectWithoutProperties2$r = _interopRequireDefault$G(objectWithoutProperti
|
|
|
41534
39587
|
|
|
41535
39588
|
var _extends2$r = _interopRequireDefault$G(_extends$3.exports);
|
|
41536
39589
|
|
|
41537
|
-
var _react$C = _interopRequireDefault$G(
|
|
39590
|
+
var _react$C = _interopRequireDefault$G(React__default);
|
|
41538
39591
|
|
|
41539
39592
|
var _propTypes$t = _interopRequireDefault$G(propTypes.exports);
|
|
41540
39593
|
|
|
@@ -41666,7 +39719,7 @@ var _getPrototypeOf2$6 = _interopRequireDefault$F(getPrototypeOf$1.exports);
|
|
|
41666
39719
|
|
|
41667
39720
|
var _inherits2$c = _interopRequireDefault$F(inherits.exports);
|
|
41668
39721
|
|
|
41669
|
-
var _react$B = _interopRequireDefault$F(
|
|
39722
|
+
var _react$B = _interopRequireDefault$F(React__default);
|
|
41670
39723
|
|
|
41671
39724
|
var _propTypes$s = _interopRequireDefault$F(propTypes.exports);
|
|
41672
39725
|
|
|
@@ -42266,7 +40319,7 @@ Object.defineProperty(ListContext$1, "__esModule", {
|
|
|
42266
40319
|
});
|
|
42267
40320
|
ListContext$1.default = void 0;
|
|
42268
40321
|
|
|
42269
|
-
var _react$A = _interopRequireDefault$E(
|
|
40322
|
+
var _react$A = _interopRequireDefault$E(React__default);
|
|
42270
40323
|
|
|
42271
40324
|
/**
|
|
42272
40325
|
* @ignore - internal component.
|
|
@@ -42289,7 +40342,7 @@ var _defineProperty2$g = _interopRequireDefault$D(defineProperty$3.exports);
|
|
|
42289
40342
|
|
|
42290
40343
|
var _objectWithoutProperties2$p = _interopRequireDefault$D(objectWithoutProperties.exports);
|
|
42291
40344
|
|
|
42292
|
-
var _react$z = _interopRequireDefault$D(
|
|
40345
|
+
var _react$z = _interopRequireDefault$D(React__default);
|
|
42293
40346
|
|
|
42294
40347
|
var _propTypes$r = _interopRequireDefault$D(propTypes.exports);
|
|
42295
40348
|
|
|
@@ -42439,7 +40492,7 @@ var _getPrototypeOf3$5 = _interopRequireDefault$C(getPrototypeOf$1.exports);
|
|
|
42439
40492
|
|
|
42440
40493
|
var _inherits2$b = _interopRequireDefault$C(inherits.exports);
|
|
42441
40494
|
|
|
42442
|
-
var _react$y = _interopRequireDefault$C(
|
|
40495
|
+
var _react$y = _interopRequireDefault$C(React__default);
|
|
42443
40496
|
|
|
42444
40497
|
var _propTypes$q = _interopRequireDefault$C(propTypes.exports);
|
|
42445
40498
|
|
|
@@ -42712,7 +40765,7 @@ var _getPrototypeOf3$4 = _interopRequireDefault$B(getPrototypeOf$1.exports);
|
|
|
42712
40765
|
|
|
42713
40766
|
var _inherits2$a = _interopRequireDefault$B(inherits.exports);
|
|
42714
40767
|
|
|
42715
|
-
var _react$x = _interopRequireDefault$B(
|
|
40768
|
+
var _react$x = _interopRequireDefault$B(React__default);
|
|
42716
40769
|
|
|
42717
40770
|
var _propTypes$p = _interopRequireDefault$B(propTypes.exports);
|
|
42718
40771
|
|
|
@@ -43045,7 +41098,7 @@ var _inherits2$9 = _interopRequireDefault$A(inherits.exports);
|
|
|
43045
41098
|
|
|
43046
41099
|
var _typeof2 = _interopRequireDefault$A(_typeof$2.exports);
|
|
43047
41100
|
|
|
43048
|
-
var _react$w = _interopRequireDefault$A(
|
|
41101
|
+
var _react$w = _interopRequireDefault$A(React__default);
|
|
43049
41102
|
|
|
43050
41103
|
var _propTypes$o = _interopRequireDefault$A(propTypes.exports);
|
|
43051
41104
|
|
|
@@ -43651,7 +41704,7 @@ shouldUpdate$1.default = void 0;
|
|
|
43651
41704
|
|
|
43652
41705
|
var _inheritsLoose2 = _interopRequireDefault$x(inheritsLoose.exports);
|
|
43653
41706
|
|
|
43654
|
-
var _react$v =
|
|
41707
|
+
var _react$v = React__default;
|
|
43655
41708
|
|
|
43656
41709
|
var _setDisplayName$1 = _interopRequireDefault$x(setDisplayName$1);
|
|
43657
41710
|
|
|
@@ -43813,7 +41866,7 @@ var _defineProperty2$e = _interopRequireDefault$u(defineProperty$3.exports);
|
|
|
43813
41866
|
|
|
43814
41867
|
var _objectWithoutProperties2$l = _interopRequireDefault$u(objectWithoutProperties.exports);
|
|
43815
41868
|
|
|
43816
|
-
var _react$u = _interopRequireDefault$u(
|
|
41869
|
+
var _react$u = _interopRequireDefault$u(React__default);
|
|
43817
41870
|
|
|
43818
41871
|
var _propTypes$n = _interopRequireDefault$u(propTypes.exports);
|
|
43819
41872
|
|
|
@@ -44007,7 +42060,7 @@ Object.defineProperty(ArrowDropDown$1, "__esModule", {
|
|
|
44007
42060
|
});
|
|
44008
42061
|
ArrowDropDown$1.default = void 0;
|
|
44009
42062
|
|
|
44010
|
-
var _react$t = _interopRequireDefault$t(
|
|
42063
|
+
var _react$t = _interopRequireDefault$t(React__default);
|
|
44011
42064
|
|
|
44012
42065
|
var _pure$4 = _interopRequireDefault$t(pure$1);
|
|
44013
42066
|
|
|
@@ -44060,7 +42113,7 @@ var _getPrototypeOf2$4 = _interopRequireDefault$s(getPrototypeOf$1.exports);
|
|
|
44060
42113
|
|
|
44061
42114
|
var _inherits2$8 = _interopRequireDefault$s(inherits.exports);
|
|
44062
42115
|
|
|
44063
|
-
var _react$s = _interopRequireDefault$s(
|
|
42116
|
+
var _react$s = _interopRequireDefault$s(React__default);
|
|
44064
42117
|
|
|
44065
42118
|
var _propTypes$m = _interopRequireDefault$s(propTypes.exports);
|
|
44066
42119
|
|
|
@@ -44361,7 +42414,7 @@ var _createClass2$7 = _interopRequireDefault$r(createClass$1.exports);
|
|
|
44361
42414
|
|
|
44362
42415
|
var _inherits2$7 = _interopRequireDefault$r(inherits.exports);
|
|
44363
42416
|
|
|
44364
|
-
var _react$r = _interopRequireDefault$r(
|
|
42417
|
+
var _react$r = _interopRequireDefault$r(React__default);
|
|
44365
42418
|
|
|
44366
42419
|
var _propTypes$l = _interopRequireDefault$r(propTypes.exports);
|
|
44367
42420
|
|
|
@@ -45058,7 +43111,7 @@ var _extends2$i = _interopRequireDefault$q(_extends$3.exports);
|
|
|
45058
43111
|
|
|
45059
43112
|
var _objectWithoutProperties2$i = _interopRequireDefault$q(objectWithoutProperties.exports);
|
|
45060
43113
|
|
|
45061
|
-
var _react$q = _interopRequireDefault$q(
|
|
43114
|
+
var _react$q = _interopRequireDefault$q(React__default);
|
|
45062
43115
|
|
|
45063
43116
|
var _propTypes$k = _interopRequireDefault$q(propTypes.exports);
|
|
45064
43117
|
|
|
@@ -45375,7 +43428,7 @@ var _defineProperty2$b = _interopRequireDefault$p(defineProperty$3.exports);
|
|
|
45375
43428
|
|
|
45376
43429
|
var _objectWithoutProperties2$h = _interopRequireDefault$p(objectWithoutProperties.exports);
|
|
45377
43430
|
|
|
45378
|
-
var _react$p = _interopRequireDefault$p(
|
|
43431
|
+
var _react$p = _interopRequireDefault$p(React__default);
|
|
45379
43432
|
|
|
45380
43433
|
var _propTypes$j = _interopRequireDefault$p(propTypes.exports);
|
|
45381
43434
|
|
|
@@ -45484,7 +43537,7 @@ var _extends2$g = _interopRequireDefault$o(_extends$3.exports);
|
|
|
45484
43537
|
|
|
45485
43538
|
var _objectWithoutProperties2$g = _interopRequireDefault$o(objectWithoutProperties.exports);
|
|
45486
43539
|
|
|
45487
|
-
var _react$o = _interopRequireDefault$o(
|
|
43540
|
+
var _react$o = _interopRequireDefault$o(React__default);
|
|
45488
43541
|
|
|
45489
43542
|
var _propTypes$i = _interopRequireDefault$o(propTypes.exports);
|
|
45490
43543
|
|
|
@@ -45700,7 +43753,7 @@ var _extends2$f = _interopRequireDefault$n(_extends$3.exports);
|
|
|
45700
43753
|
|
|
45701
43754
|
var _objectWithoutProperties2$f = _interopRequireDefault$n(objectWithoutProperties.exports);
|
|
45702
43755
|
|
|
45703
|
-
var _react$n = _interopRequireDefault$n(
|
|
43756
|
+
var _react$n = _interopRequireDefault$n(React__default);
|
|
45704
43757
|
|
|
45705
43758
|
var _propTypes$h = _interopRequireDefault$n(propTypes.exports);
|
|
45706
43759
|
|
|
@@ -45964,7 +44017,7 @@ var _getPrototypeOf3$3 = _interopRequireDefault$m(getPrototypeOf$1.exports);
|
|
|
45964
44017
|
|
|
45965
44018
|
var _inherits2$6 = _interopRequireDefault$m(inherits.exports);
|
|
45966
44019
|
|
|
45967
|
-
var _react$m = _interopRequireDefault$m(
|
|
44020
|
+
var _react$m = _interopRequireDefault$m(React__default);
|
|
45968
44021
|
|
|
45969
44022
|
var _propTypes$g = _interopRequireDefault$m(propTypes.exports);
|
|
45970
44023
|
|
|
@@ -46185,7 +44238,7 @@ ChildMapping.mergeChildMappings = mergeChildMappings;
|
|
|
46185
44238
|
ChildMapping.getInitialChildMapping = getInitialChildMapping;
|
|
46186
44239
|
ChildMapping.getNextChildMapping = getNextChildMapping;
|
|
46187
44240
|
|
|
46188
|
-
var _react$l =
|
|
44241
|
+
var _react$l = React__default;
|
|
46189
44242
|
|
|
46190
44243
|
/**
|
|
46191
44244
|
* Given `this.props.children`, return an object mapping key to child.
|
|
@@ -46335,7 +44388,7 @@ exports.default = void 0;
|
|
|
46335
44388
|
|
|
46336
44389
|
var _propTypes = _interopRequireDefault(propTypes.exports);
|
|
46337
44390
|
|
|
46338
|
-
var _react = _interopRequireDefault(
|
|
44391
|
+
var _react = _interopRequireDefault(React__default);
|
|
46339
44392
|
|
|
46340
44393
|
var _reactLifecyclesCompat = require$$2;
|
|
46341
44394
|
|
|
@@ -46563,7 +44616,7 @@ var _getPrototypeOf3$2 = _interopRequireDefault$k(getPrototypeOf$1.exports);
|
|
|
46563
44616
|
|
|
46564
44617
|
var _inherits2$5 = _interopRequireDefault$k(inherits.exports);
|
|
46565
44618
|
|
|
46566
|
-
var _react$k = _interopRequireDefault$k(
|
|
44619
|
+
var _react$k = _interopRequireDefault$k(React__default);
|
|
46567
44620
|
|
|
46568
44621
|
var _propTypes$f = _interopRequireDefault$k(propTypes.exports);
|
|
46569
44622
|
|
|
@@ -46712,7 +44765,7 @@ var _inherits2$4 = _interopRequireDefault$j(inherits.exports);
|
|
|
46712
44765
|
|
|
46713
44766
|
var _assertThisInitialized2$2 = _interopRequireDefault$j(assertThisInitialized.exports);
|
|
46714
44767
|
|
|
46715
|
-
var _react$j = _interopRequireDefault$j(
|
|
44768
|
+
var _react$j = _interopRequireDefault$j(React__default);
|
|
46716
44769
|
|
|
46717
44770
|
var _propTypes$e = _interopRequireDefault$j(propTypes.exports);
|
|
46718
44771
|
|
|
@@ -47128,7 +45181,7 @@ var _inherits2$3 = _interopRequireDefault$i(inherits.exports);
|
|
|
47128
45181
|
|
|
47129
45182
|
var _assertThisInitialized2$1 = _interopRequireDefault$i(assertThisInitialized.exports);
|
|
47130
45183
|
|
|
47131
|
-
var _react$i = _interopRequireDefault$i(
|
|
45184
|
+
var _react$i = _interopRequireDefault$i(React__default);
|
|
47132
45185
|
|
|
47133
45186
|
var _propTypes$d = _interopRequireDefault$i(propTypes.exports);
|
|
47134
45187
|
|
|
@@ -47672,7 +45725,7 @@ Object.defineProperty(MergeListContext$1, "__esModule", {
|
|
|
47672
45725
|
});
|
|
47673
45726
|
MergeListContext$1.default = void 0;
|
|
47674
45727
|
|
|
47675
|
-
var _react$h = _interopRequireDefault$h(
|
|
45728
|
+
var _react$h = _interopRequireDefault$h(React__default);
|
|
47676
45729
|
|
|
47677
45730
|
var _propTypes$c = _interopRequireDefault$h(propTypes.exports);
|
|
47678
45731
|
|
|
@@ -47719,7 +45772,7 @@ var _defineProperty2$8 = _interopRequireDefault$g(defineProperty$3.exports);
|
|
|
47719
45772
|
|
|
47720
45773
|
var _objectWithoutProperties2$b = _interopRequireDefault$g(objectWithoutProperties.exports);
|
|
47721
45774
|
|
|
47722
|
-
var _react$g = _interopRequireDefault$g(
|
|
45775
|
+
var _react$g = _interopRequireDefault$g(React__default);
|
|
47723
45776
|
|
|
47724
45777
|
var _propTypes$b = _interopRequireDefault$g(propTypes.exports);
|
|
47725
45778
|
|
|
@@ -48042,7 +46095,7 @@ var _objectWithoutProperties2$a = _interopRequireDefault$f(objectWithoutProperti
|
|
|
48042
46095
|
|
|
48043
46096
|
var _extends2$a = _interopRequireDefault$f(_extends$3.exports);
|
|
48044
46097
|
|
|
48045
|
-
var _react$f = _interopRequireDefault$f(
|
|
46098
|
+
var _react$f = _interopRequireDefault$f(React__default);
|
|
48046
46099
|
|
|
48047
46100
|
var _propTypes$a = _interopRequireDefault$f(propTypes.exports);
|
|
48048
46101
|
|
|
@@ -48185,7 +46238,7 @@ var _extends2$9 = _interopRequireDefault$e(_extends$3.exports);
|
|
|
48185
46238
|
|
|
48186
46239
|
var _objectWithoutProperties2$9 = _interopRequireDefault$e(objectWithoutProperties.exports);
|
|
48187
46240
|
|
|
48188
|
-
var _react$e = _interopRequireDefault$e(
|
|
46241
|
+
var _react$e = _interopRequireDefault$e(React__default);
|
|
48189
46242
|
|
|
48190
46243
|
var _propTypes$9 = _interopRequireDefault$e(propTypes.exports);
|
|
48191
46244
|
|
|
@@ -48276,7 +46329,7 @@ var _extends2$8 = _interopRequireDefault$d(_extends$3.exports);
|
|
|
48276
46329
|
|
|
48277
46330
|
var _objectWithoutProperties2$8 = _interopRequireDefault$d(objectWithoutProperties.exports);
|
|
48278
46331
|
|
|
48279
|
-
var _react$d = _interopRequireDefault$d(
|
|
46332
|
+
var _react$d = _interopRequireDefault$d(React__default);
|
|
48280
46333
|
|
|
48281
46334
|
var _propTypes$8 = _interopRequireDefault$d(propTypes.exports);
|
|
48282
46335
|
|
|
@@ -48371,7 +46424,7 @@ var _objectWithoutProperties2$7 = _interopRequireDefault$c(objectWithoutProperti
|
|
|
48371
46424
|
|
|
48372
46425
|
var _extends2$7 = _interopRequireDefault$c(_extends$3.exports);
|
|
48373
46426
|
|
|
48374
|
-
var _react$c = _interopRequireDefault$c(
|
|
46427
|
+
var _react$c = _interopRequireDefault$c(React__default);
|
|
48375
46428
|
|
|
48376
46429
|
var _propTypes$7 = _interopRequireDefault$c(propTypes.exports);
|
|
48377
46430
|
|
|
@@ -48823,7 +46876,7 @@ var _defineProperty2$5 = _interopRequireDefault$b(defineProperty$3.exports);
|
|
|
48823
46876
|
|
|
48824
46877
|
var _objectWithoutProperties2$6 = _interopRequireDefault$b(objectWithoutProperties.exports);
|
|
48825
46878
|
|
|
48826
|
-
var _react$b = _interopRequireDefault$b(
|
|
46879
|
+
var _react$b = _interopRequireDefault$b(React__default);
|
|
48827
46880
|
|
|
48828
46881
|
var _propTypes$6 = _interopRequireDefault$b(propTypes.exports);
|
|
48829
46882
|
|
|
@@ -49199,7 +47252,7 @@ var _defineProperty2$4 = _interopRequireDefault$a(defineProperty$3.exports);
|
|
|
49199
47252
|
|
|
49200
47253
|
var _objectWithoutProperties2$5 = _interopRequireDefault$a(objectWithoutProperties.exports);
|
|
49201
47254
|
|
|
49202
|
-
var _react$a = _interopRequireDefault$a(
|
|
47255
|
+
var _react$a = _interopRequireDefault$a(React__default);
|
|
49203
47256
|
|
|
49204
47257
|
var _propTypes$5 = _interopRequireDefault$a(propTypes.exports);
|
|
49205
47258
|
|
|
@@ -49431,7 +47484,7 @@ var _defineProperty2$3 = _interopRequireDefault$9(defineProperty$3.exports);
|
|
|
49431
47484
|
|
|
49432
47485
|
var _objectWithoutProperties2$4 = _interopRequireDefault$9(objectWithoutProperties.exports);
|
|
49433
47486
|
|
|
49434
|
-
var _react$9 = _interopRequireDefault$9(
|
|
47487
|
+
var _react$9 = _interopRequireDefault$9(React__default);
|
|
49435
47488
|
|
|
49436
47489
|
var _propTypes$4 = _interopRequireDefault$9(propTypes.exports);
|
|
49437
47490
|
|
|
@@ -49641,7 +47694,7 @@ var _getPrototypeOf2$2 = _interopRequireDefault$8(getPrototypeOf$1.exports);
|
|
|
49641
47694
|
|
|
49642
47695
|
var _inherits2$2 = _interopRequireDefault$8(inherits.exports);
|
|
49643
47696
|
|
|
49644
|
-
var _react$8 = _interopRequireDefault$8(
|
|
47697
|
+
var _react$8 = _interopRequireDefault$8(React__default);
|
|
49645
47698
|
|
|
49646
47699
|
var _propTypes$3 = _interopRequireDefault$8(propTypes.exports);
|
|
49647
47700
|
|
|
@@ -49946,7 +47999,7 @@ Object.defineProperty(CheckBoxOutlineBlank$1, "__esModule", {
|
|
|
49946
47999
|
});
|
|
49947
48000
|
CheckBoxOutlineBlank$1.default = void 0;
|
|
49948
48001
|
|
|
49949
|
-
var _react$7 = _interopRequireDefault$7(
|
|
48002
|
+
var _react$7 = _interopRequireDefault$7(React__default);
|
|
49950
48003
|
|
|
49951
48004
|
var _pure$3 = _interopRequireDefault$7(pure$1);
|
|
49952
48005
|
|
|
@@ -49977,7 +48030,7 @@ Object.defineProperty(CheckBox$1, "__esModule", {
|
|
|
49977
48030
|
});
|
|
49978
48031
|
CheckBox$1.default = void 0;
|
|
49979
48032
|
|
|
49980
|
-
var _react$6 = _interopRequireDefault$6(
|
|
48033
|
+
var _react$6 = _interopRequireDefault$6(React__default);
|
|
49981
48034
|
|
|
49982
48035
|
var _pure$2 = _interopRequireDefault$6(pure$1);
|
|
49983
48036
|
|
|
@@ -50008,7 +48061,7 @@ Object.defineProperty(IndeterminateCheckBox$1, "__esModule", {
|
|
|
50008
48061
|
});
|
|
50009
48062
|
IndeterminateCheckBox$1.default = void 0;
|
|
50010
48063
|
|
|
50011
|
-
var _react$5 = _interopRequireDefault$5(
|
|
48064
|
+
var _react$5 = _interopRequireDefault$5(React__default);
|
|
50012
48065
|
|
|
50013
48066
|
var _pure$1 = _interopRequireDefault$5(pure$1);
|
|
50014
48067
|
|
|
@@ -50043,7 +48096,7 @@ var _defineProperty2$1 = _interopRequireDefault$4(defineProperty$3.exports);
|
|
|
50043
48096
|
|
|
50044
48097
|
var _objectWithoutProperties2$2 = _interopRequireDefault$4(objectWithoutProperties.exports);
|
|
50045
48098
|
|
|
50046
|
-
var _react$4 = _interopRequireDefault$4(
|
|
48099
|
+
var _react$4 = _interopRequireDefault$4(React__default);
|
|
50047
48100
|
|
|
50048
48101
|
var _propTypes$2 = _interopRequireDefault$4(propTypes.exports);
|
|
50049
48102
|
|
|
@@ -50310,7 +48363,7 @@ const styles$3 = theme => ({
|
|
|
50310
48363
|
}
|
|
50311
48364
|
});
|
|
50312
48365
|
|
|
50313
|
-
class Response extends
|
|
48366
|
+
class Response extends React$1.Component {
|
|
50314
48367
|
constructor(props) {
|
|
50315
48368
|
super(props);
|
|
50316
48369
|
|
|
@@ -50500,46 +48553,46 @@ class Response extends react.exports.Component {
|
|
|
50500
48553
|
const styles = {
|
|
50501
48554
|
minHeight: `${showKeypad.openCount > 0 ? 430 : 230}px`
|
|
50502
48555
|
};
|
|
50503
|
-
return /*#__PURE__*/
|
|
48556
|
+
return /*#__PURE__*/React$1.createElement(Card, {
|
|
50504
48557
|
className: classes.responseContainer,
|
|
50505
48558
|
style: styles
|
|
50506
|
-
}, /*#__PURE__*/
|
|
48559
|
+
}, /*#__PURE__*/React$1.createElement(CardContent, {
|
|
50507
48560
|
className: classes.cardContent
|
|
50508
|
-
}, /*#__PURE__*/
|
|
48561
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
50509
48562
|
className: classes.titleBar
|
|
50510
|
-
}, /*#__PURE__*/
|
|
48563
|
+
}, /*#__PURE__*/React$1.createElement(Typography, {
|
|
50511
48564
|
className: classes.title,
|
|
50512
48565
|
component: "div"
|
|
50513
|
-
}, "Response ", ''), /*#__PURE__*/
|
|
48566
|
+
}, "Response ", ''), /*#__PURE__*/React$1.createElement(InputContainer, {
|
|
50514
48567
|
label: "Validation",
|
|
50515
48568
|
className: classes.selectContainer
|
|
50516
|
-
}, /*#__PURE__*/
|
|
48569
|
+
}, /*#__PURE__*/React$1.createElement(Select, {
|
|
50517
48570
|
className: classes.select,
|
|
50518
48571
|
onChange: this.onChange('validation'),
|
|
50519
48572
|
value: validation || 'literal'
|
|
50520
|
-
}, /*#__PURE__*/
|
|
48573
|
+
}, /*#__PURE__*/React$1.createElement(MenuItem, {
|
|
50521
48574
|
value: "literal"
|
|
50522
|
-
}, "Literal Validation"), /*#__PURE__*/
|
|
48575
|
+
}, "Literal Validation"), /*#__PURE__*/React$1.createElement(MenuItem, {
|
|
50523
48576
|
value: "symbolic"
|
|
50524
|
-
}, "Symbolic Validation")))), validation === 'literal' && /*#__PURE__*/
|
|
48577
|
+
}, "Symbolic Validation")))), validation === 'literal' && /*#__PURE__*/React$1.createElement("div", {
|
|
50525
48578
|
className: classes.flexContainer
|
|
50526
|
-
}, cAllowTrailingZeros.enabled && /*#__PURE__*/
|
|
48579
|
+
}, cAllowTrailingZeros.enabled && /*#__PURE__*/React$1.createElement(FormControlLabel, {
|
|
50527
48580
|
label: cAllowTrailingZeros.label,
|
|
50528
|
-
control: /*#__PURE__*/
|
|
48581
|
+
control: /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
50529
48582
|
className: classes.customColor,
|
|
50530
48583
|
checked: allowTrailingZeros,
|
|
50531
48584
|
onChange: this.onLiteralOptionsChange('allowTrailingZeros')
|
|
50532
48585
|
})
|
|
50533
|
-
}), cIgnoreOrder.enabled && /*#__PURE__*/
|
|
48586
|
+
}), cIgnoreOrder.enabled && /*#__PURE__*/React$1.createElement(FormControlLabel, {
|
|
50534
48587
|
label: cIgnoreOrder.label,
|
|
50535
|
-
control: /*#__PURE__*/
|
|
48588
|
+
control: /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
50536
48589
|
className: classes.customColor,
|
|
50537
48590
|
checked: ignoreOrder,
|
|
50538
48591
|
onChange: this.onLiteralOptionsChange('ignoreOrder')
|
|
50539
48592
|
})
|
|
50540
|
-
})), /*#__PURE__*/
|
|
48593
|
+
})), /*#__PURE__*/React$1.createElement("div", {
|
|
50541
48594
|
className: classes.inputContainer
|
|
50542
|
-
}, /*#__PURE__*/
|
|
48595
|
+
}, /*#__PURE__*/React$1.createElement(InputLabel, null, "Correct Answer"), /*#__PURE__*/React$1.createElement(MathToolbar, {
|
|
50543
48596
|
keypadMode: mode,
|
|
50544
48597
|
classNames: classNames,
|
|
50545
48598
|
controlledKeypad: true,
|
|
@@ -50549,18 +48602,18 @@ class Response extends react.exports.Component {
|
|
|
50549
48602
|
onFocus: this.onFocus,
|
|
50550
48603
|
onDone: this.onDone,
|
|
50551
48604
|
error: error && error.answer
|
|
50552
|
-
}), error && error.answer ? /*#__PURE__*/
|
|
48605
|
+
}), error && error.answer ? /*#__PURE__*/React$1.createElement("div", {
|
|
50553
48606
|
className: classes.errorText
|
|
50554
|
-
}, error.answer) : null), hasAlternates && Object.keys(alternates).map((alternateId, altIdx) => /*#__PURE__*/
|
|
48607
|
+
}, error.answer) : null), hasAlternates && Object.keys(alternates).map((alternateId, altIdx) => /*#__PURE__*/React$1.createElement("div", {
|
|
50555
48608
|
className: classes.inputContainer,
|
|
50556
48609
|
key: alternateId
|
|
50557
|
-
}, /*#__PURE__*/
|
|
48610
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
50558
48611
|
className: classes.alternateBar
|
|
50559
|
-
}, /*#__PURE__*/
|
|
48612
|
+
}, /*#__PURE__*/React$1.createElement(InputLabel, null, "Alternate", Object.keys(alternates).length > 1 ? ` ${altIdx + 1}` : ''), /*#__PURE__*/React$1.createElement(Button, {
|
|
50560
48613
|
className: classes.removeAlternateButton,
|
|
50561
48614
|
type: "secondary",
|
|
50562
48615
|
onClick: this.onRemoveAlternate(alternateId)
|
|
50563
|
-
}, "Remove")), /*#__PURE__*/
|
|
48616
|
+
}, "Remove")), /*#__PURE__*/React$1.createElement(MathToolbar, {
|
|
50564
48617
|
classNames: classNames,
|
|
50565
48618
|
controlledKeypad: true,
|
|
50566
48619
|
keypadMode: mode,
|
|
@@ -50570,9 +48623,9 @@ class Response extends react.exports.Component {
|
|
|
50570
48623
|
onFocus: this.onAlternateFocus(alternateId),
|
|
50571
48624
|
onDone: this.onAlternateDone(alternateId),
|
|
50572
48625
|
error: error && error[alternateId]
|
|
50573
|
-
}), error && error[alternateId] ? /*#__PURE__*/
|
|
48626
|
+
}), error && error[alternateId] ? /*#__PURE__*/React$1.createElement("div", {
|
|
50574
48627
|
className: classes.errorText
|
|
50575
|
-
}, error[alternateId]) : null)), /*#__PURE__*/
|
|
48628
|
+
}, error[alternateId]) : null)), /*#__PURE__*/React$1.createElement(Button, {
|
|
50576
48629
|
className: classes.alternateButton,
|
|
50577
48630
|
type: "primary",
|
|
50578
48631
|
onClick: this.onAddAlternate
|
|
@@ -53056,7 +51109,7 @@ Object.defineProperty(createSvgIcon$1, "__esModule", {
|
|
|
53056
51109
|
});
|
|
53057
51110
|
createSvgIcon$1.default = void 0;
|
|
53058
51111
|
|
|
53059
|
-
var _react$3 = _interopRequireDefault$3(
|
|
51112
|
+
var _react$3 = _interopRequireDefault$3(React__default);
|
|
53060
51113
|
|
|
53061
51114
|
var _pure = _interopRequireDefault$3(pure$1);
|
|
53062
51115
|
|
|
@@ -53082,7 +51135,7 @@ Object.defineProperty(Info, "__esModule", {
|
|
|
53082
51135
|
});
|
|
53083
51136
|
var default_1 = Info.default = void 0;
|
|
53084
51137
|
|
|
53085
|
-
var _react$2 = _interopRequireDefault$2(
|
|
51138
|
+
var _react$2 = _interopRequireDefault$2(React__default);
|
|
53086
51139
|
|
|
53087
51140
|
var _createSvgIcon = _interopRequireDefault$2(createSvgIcon$1);
|
|
53088
51141
|
|
|
@@ -55747,7 +53800,7 @@ var _inherits2$1 = _interopRequireDefault$1(inherits.exports);
|
|
|
55747
53800
|
|
|
55748
53801
|
var _assertThisInitialized2 = _interopRequireDefault$1(assertThisInitialized.exports);
|
|
55749
53802
|
|
|
55750
|
-
var _react$1 = _interopRequireDefault$1(
|
|
53803
|
+
var _react$1 = _interopRequireDefault$1(React__default);
|
|
55751
53804
|
|
|
55752
53805
|
var _reactDom = _interopRequireDefault$1(reactDom.exports);
|
|
55753
53806
|
|
|
@@ -56071,7 +54124,7 @@ var _inherits2 = _interopRequireDefault(inherits.exports);
|
|
|
56071
54124
|
|
|
56072
54125
|
var _defineProperty2 = _interopRequireDefault(defineProperty$3.exports);
|
|
56073
54126
|
|
|
56074
|
-
var _react = _interopRequireDefault(
|
|
54127
|
+
var _react = _interopRequireDefault(React__default);
|
|
56075
54128
|
|
|
56076
54129
|
var _propTypes = _interopRequireDefault(propTypes.exports);
|
|
56077
54130
|
|
|
@@ -56717,7 +54770,7 @@ function prepareForModel(expression) {
|
|
|
56717
54770
|
}
|
|
56718
54771
|
}
|
|
56719
54772
|
|
|
56720
|
-
class GeneralConfigBlock extends
|
|
54773
|
+
class GeneralConfigBlock extends React$1.Component {
|
|
56721
54774
|
constructor(props) {
|
|
56722
54775
|
super(props);
|
|
56723
54776
|
|
|
@@ -56952,7 +55005,7 @@ class GeneralConfigBlock extends react.exports.Component {
|
|
|
56952
55005
|
mathToolbar: classes.mathToolbar
|
|
56953
55006
|
};
|
|
56954
55007
|
const responsesToUse = responseType === ResponseTypes.advanced ? responses : responses.slice(0, 1);
|
|
56955
|
-
const validationTooltip = /*#__PURE__*/
|
|
55008
|
+
const validationTooltip = /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
56956
55009
|
classes: {
|
|
56957
55010
|
tooltip: classes.tooltip
|
|
56958
55011
|
},
|
|
@@ -56960,20 +55013,20 @@ class GeneralConfigBlock extends react.exports.Component {
|
|
|
56960
55013
|
disableTouchListener: true,
|
|
56961
55014
|
placement: 'right',
|
|
56962
55015
|
title: validationMessage
|
|
56963
|
-
}, /*#__PURE__*/
|
|
55016
|
+
}, /*#__PURE__*/React$1.createElement(default_1, {
|
|
56964
55017
|
fontSize: 'small',
|
|
56965
55018
|
color: 'primary',
|
|
56966
55019
|
style: {
|
|
56967
55020
|
marginLeft: '5px'
|
|
56968
55021
|
}
|
|
56969
55022
|
}));
|
|
56970
|
-
return /*#__PURE__*/
|
|
55023
|
+
return /*#__PURE__*/React$1.createElement("div", {
|
|
56971
55024
|
ref: r => this.root = r || this.root,
|
|
56972
55025
|
className: classes.container
|
|
56973
|
-
}, promptEnabled && /*#__PURE__*/
|
|
55026
|
+
}, promptEnabled && /*#__PURE__*/React$1.createElement(InputContainer, {
|
|
56974
55027
|
label: cPrompt.label,
|
|
56975
55028
|
className: classes.promptHolder
|
|
56976
|
-
}, /*#__PURE__*/
|
|
55029
|
+
}, /*#__PURE__*/React$1.createElement(EditableHtml, {
|
|
56977
55030
|
onFocus: this.onPromptFocus,
|
|
56978
55031
|
className: classes.prompt,
|
|
56979
55032
|
markup: prompt || '',
|
|
@@ -56993,55 +55046,55 @@ class GeneralConfigBlock extends react.exports.Component {
|
|
|
56993
55046
|
language: 'special'
|
|
56994
55047
|
}],
|
|
56995
55048
|
mathMlOptions: mathMlOptions
|
|
56996
|
-
}), promptError && /*#__PURE__*/
|
|
55049
|
+
}), promptError && /*#__PURE__*/React$1.createElement("div", {
|
|
56997
55050
|
className: classes.errorText
|
|
56998
|
-
}, promptError)), responseType === ResponseTypes.advanced && /*#__PURE__*/
|
|
55051
|
+
}, promptError)), responseType === ResponseTypes.advanced && /*#__PURE__*/React$1.createElement("div", {
|
|
56999
55052
|
className: classes.advancedResponse
|
|
57000
|
-
}, /*#__PURE__*/
|
|
55053
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
57001
55054
|
className: classes.flexContainer,
|
|
57002
55055
|
style: {
|
|
57003
55056
|
justifyContent: 'flex-start'
|
|
57004
55057
|
}
|
|
57005
|
-
}, /*#__PURE__*/
|
|
55058
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
57006
55059
|
className: classes.title
|
|
57007
|
-
}, "Define Response"), validationTooltip), /*#__PURE__*/
|
|
55060
|
+
}, "Define Response"), validationTooltip), /*#__PURE__*/React$1.createElement(InputContainer, {
|
|
57008
55061
|
key: "templateEditorType",
|
|
57009
55062
|
label: "Response Template Equation Editor",
|
|
57010
55063
|
className: classes.selectContainer
|
|
57011
|
-
}, /*#__PURE__*/
|
|
55064
|
+
}, /*#__PURE__*/React$1.createElement(Select, {
|
|
57012
55065
|
className: classes.select,
|
|
57013
55066
|
onChange: this.onChange('promptEquationEditor'),
|
|
57014
55067
|
value: promptEquationEditor
|
|
57015
|
-
}, /*#__PURE__*/
|
|
55068
|
+
}, /*#__PURE__*/React$1.createElement(MenuItem, {
|
|
57016
55069
|
value: "non-negative-integers"
|
|
57017
|
-
}, "Numeric - Non-Negative Integers"), /*#__PURE__*/
|
|
55070
|
+
}, "Numeric - Non-Negative Integers"), /*#__PURE__*/React$1.createElement(MenuItem, {
|
|
57018
55071
|
value: "integers"
|
|
57019
|
-
}, "Numeric - Integers"), /*#__PURE__*/
|
|
55072
|
+
}, "Numeric - Integers"), /*#__PURE__*/React$1.createElement(MenuItem, {
|
|
57020
55073
|
value: "decimals"
|
|
57021
|
-
}, "Numeric - Decimals"), /*#__PURE__*/
|
|
55074
|
+
}, "Numeric - Decimals"), /*#__PURE__*/React$1.createElement(MenuItem, {
|
|
57022
55075
|
value: "fractions"
|
|
57023
|
-
}, "Numeric - Fractions"), /*#__PURE__*/
|
|
55076
|
+
}, "Numeric - Fractions"), /*#__PURE__*/React$1.createElement(MenuItem, {
|
|
57024
55077
|
value: 1
|
|
57025
|
-
}, "Grade 1 - 2"), /*#__PURE__*/
|
|
55078
|
+
}, "Grade 1 - 2"), /*#__PURE__*/React$1.createElement(MenuItem, {
|
|
57026
55079
|
value: 3
|
|
57027
|
-
}, "Grade 3 - 5"), /*#__PURE__*/
|
|
55080
|
+
}, "Grade 3 - 5"), /*#__PURE__*/React$1.createElement(MenuItem, {
|
|
57028
55081
|
value: 6
|
|
57029
|
-
}, "Grade 6 - 7"), /*#__PURE__*/
|
|
55082
|
+
}, "Grade 6 - 7"), /*#__PURE__*/React$1.createElement(MenuItem, {
|
|
57030
55083
|
value: 8
|
|
57031
|
-
}, "Grade 8 - HS"), /*#__PURE__*/
|
|
55084
|
+
}, "Grade 8 - HS"), /*#__PURE__*/React$1.createElement(MenuItem, {
|
|
57032
55085
|
value: 'geometry'
|
|
57033
|
-
}, "Geometry"), /*#__PURE__*/
|
|
55086
|
+
}, "Geometry"), /*#__PURE__*/React$1.createElement(MenuItem, {
|
|
57034
55087
|
value: 'advanced-algebra'
|
|
57035
|
-
}, "Advanced Algebra"), /*#__PURE__*/
|
|
55088
|
+
}, "Advanced Algebra"), /*#__PURE__*/React$1.createElement(MenuItem, {
|
|
57036
55089
|
value: 'statistics'
|
|
57037
|
-
}, "Statistics"), /*#__PURE__*/
|
|
55090
|
+
}, "Statistics"), /*#__PURE__*/React$1.createElement(MenuItem, {
|
|
57038
55091
|
value: 'item-authoring'
|
|
57039
|
-
}, "Item Authoring"))), /*#__PURE__*/
|
|
55092
|
+
}, "Item Authoring"))), /*#__PURE__*/React$1.createElement("div", {
|
|
57040
55093
|
className: classes.responseTemplate,
|
|
57041
55094
|
key: "templateHolder"
|
|
57042
|
-
}, /*#__PURE__*/
|
|
55095
|
+
}, /*#__PURE__*/React$1.createElement(InputLabel, {
|
|
57043
55096
|
className: classes.templateTitle
|
|
57044
|
-
}, "RESPONSE TEMPLATE"), /*#__PURE__*/
|
|
55097
|
+
}, "RESPONSE TEMPLATE"), /*#__PURE__*/React$1.createElement(MathToolbar, {
|
|
57045
55098
|
classNames: classNames,
|
|
57046
55099
|
allowAnswerBlock: true,
|
|
57047
55100
|
keypadMode: promptEquationEditor,
|
|
@@ -57053,47 +55106,47 @@ class GeneralConfigBlock extends react.exports.Component {
|
|
|
57053
55106
|
onDone: this.onDone,
|
|
57054
55107
|
maxResponseAreas: maxResponseAreas,
|
|
57055
55108
|
error: responseAreasError
|
|
57056
|
-
})), responseAreasError && /*#__PURE__*/
|
|
55109
|
+
})), responseAreasError && /*#__PURE__*/React$1.createElement("div", {
|
|
57057
55110
|
className: classes.errorText
|
|
57058
|
-
}, responseAreasError)), /*#__PURE__*/
|
|
55111
|
+
}, responseAreasError)), /*#__PURE__*/React$1.createElement("div", {
|
|
57059
55112
|
className: classes.flexContainer,
|
|
57060
55113
|
style: {
|
|
57061
55114
|
justifyContent: 'flex-start'
|
|
57062
55115
|
}
|
|
57063
|
-
}, /*#__PURE__*/
|
|
55116
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
57064
55117
|
className: classes.title
|
|
57065
|
-
}, "Define Correct Response"), responseType === ResponseTypes.simple ? validationTooltip : null), /*#__PURE__*/
|
|
55118
|
+
}, "Define Correct Response"), responseType === ResponseTypes.simple ? validationTooltip : null), /*#__PURE__*/React$1.createElement(InputContainer, {
|
|
57066
55119
|
label: "Equation Editor",
|
|
57067
55120
|
className: classes.selectContainer
|
|
57068
|
-
}, /*#__PURE__*/
|
|
55121
|
+
}, /*#__PURE__*/React$1.createElement(Select, {
|
|
57069
55122
|
className: classes.select,
|
|
57070
55123
|
onChange: this.onChange('equationEditor'),
|
|
57071
55124
|
value: equationEditor
|
|
57072
|
-
}, /*#__PURE__*/
|
|
55125
|
+
}, /*#__PURE__*/React$1.createElement(MenuItem, {
|
|
57073
55126
|
value: "non-negative-integers"
|
|
57074
|
-
}, "Numeric - Non-Negative Integers"), /*#__PURE__*/
|
|
55127
|
+
}, "Numeric - Non-Negative Integers"), /*#__PURE__*/React$1.createElement(MenuItem, {
|
|
57075
55128
|
value: "integers"
|
|
57076
|
-
}, "Numeric - Integers"), /*#__PURE__*/
|
|
55129
|
+
}, "Numeric - Integers"), /*#__PURE__*/React$1.createElement(MenuItem, {
|
|
57077
55130
|
value: "decimals"
|
|
57078
|
-
}, "Numeric - Decimals"), /*#__PURE__*/
|
|
55131
|
+
}, "Numeric - Decimals"), /*#__PURE__*/React$1.createElement(MenuItem, {
|
|
57079
55132
|
value: "fractions"
|
|
57080
|
-
}, "Numeric - Fractions"), /*#__PURE__*/
|
|
55133
|
+
}, "Numeric - Fractions"), /*#__PURE__*/React$1.createElement(MenuItem, {
|
|
57081
55134
|
value: 1
|
|
57082
|
-
}, "Grade 1 - 2"), /*#__PURE__*/
|
|
55135
|
+
}, "Grade 1 - 2"), /*#__PURE__*/React$1.createElement(MenuItem, {
|
|
57083
55136
|
value: 3
|
|
57084
|
-
}, "Grade 3 - 5"), /*#__PURE__*/
|
|
55137
|
+
}, "Grade 3 - 5"), /*#__PURE__*/React$1.createElement(MenuItem, {
|
|
57085
55138
|
value: 6
|
|
57086
|
-
}, "Grade 6 - 7"), /*#__PURE__*/
|
|
55139
|
+
}, "Grade 6 - 7"), /*#__PURE__*/React$1.createElement(MenuItem, {
|
|
57087
55140
|
value: 8
|
|
57088
|
-
}, "Grade 8 - HS"), /*#__PURE__*/
|
|
55141
|
+
}, "Grade 8 - HS"), /*#__PURE__*/React$1.createElement(MenuItem, {
|
|
57089
55142
|
value: 'geometry'
|
|
57090
|
-
}, "Geometry"), /*#__PURE__*/
|
|
55143
|
+
}, "Geometry"), /*#__PURE__*/React$1.createElement(MenuItem, {
|
|
57091
55144
|
value: 'advanced-algebra'
|
|
57092
|
-
}, "Advanced Algebra"), /*#__PURE__*/
|
|
55145
|
+
}, "Advanced Algebra"), /*#__PURE__*/React$1.createElement(MenuItem, {
|
|
57093
55146
|
value: 'statistics'
|
|
57094
|
-
}, "Statistics"), /*#__PURE__*/
|
|
55147
|
+
}, "Statistics"), /*#__PURE__*/React$1.createElement(MenuItem, {
|
|
57095
55148
|
value: 'item-authoring'
|
|
57096
|
-
}, "Item Authoring"))), responsesToUse.map((response, idx) => /*#__PURE__*/
|
|
55149
|
+
}, "Item Authoring"))), responsesToUse.map((response, idx) => /*#__PURE__*/React$1.createElement(Response$1, {
|
|
57097
55150
|
key: response.id,
|
|
57098
55151
|
mode: equationEditor,
|
|
57099
55152
|
response: response,
|
|
@@ -57103,10 +55156,10 @@ class GeneralConfigBlock extends react.exports.Component {
|
|
|
57103
55156
|
cIgnoreOrder: cIgnoreOrder,
|
|
57104
55157
|
cAllowTrailingZeros: cAllowTrailingZeros,
|
|
57105
55158
|
error: responsesErrors && responsesErrors[idx]
|
|
57106
|
-
})), rationaleEnabled && /*#__PURE__*/
|
|
55159
|
+
})), rationaleEnabled && /*#__PURE__*/React$1.createElement(InputContainer, {
|
|
57107
55160
|
label: cRationale.label,
|
|
57108
55161
|
className: classes.promptHolder
|
|
57109
|
-
}, /*#__PURE__*/
|
|
55162
|
+
}, /*#__PURE__*/React$1.createElement(EditableHtml, {
|
|
57110
55163
|
className: classes.prompt,
|
|
57111
55164
|
markup: rationale || '',
|
|
57112
55165
|
onChange: this.onChange('rationale'),
|
|
@@ -57129,7 +55182,7 @@ class GeneralConfigBlock extends react.exports.Component {
|
|
|
57129
55182
|
language: 'special'
|
|
57130
55183
|
}],
|
|
57131
55184
|
mathMlOptions: mathMlOptions
|
|
57132
|
-
}), rationaleError && /*#__PURE__*/
|
|
55185
|
+
}), rationaleError && /*#__PURE__*/React$1.createElement("div", {
|
|
57133
55186
|
className: classes.errorText
|
|
57134
55187
|
}, rationaleError)));
|
|
57135
55188
|
}
|
|
@@ -57170,7 +55223,7 @@ const styles = theme => ({
|
|
|
57170
55223
|
}
|
|
57171
55224
|
});
|
|
57172
55225
|
|
|
57173
|
-
class Configure extends
|
|
55226
|
+
class Configure extends React__default.Component {
|
|
57174
55227
|
constructor(...args) {
|
|
57175
55228
|
super(...args);
|
|
57176
55229
|
|
|
@@ -57261,11 +55314,11 @@ class Configure extends React$1.Component {
|
|
|
57261
55314
|
'allowTrailingZeros.enabled': allowTrailingZeros.settings && toggle(allowTrailingZeros.label),
|
|
57262
55315
|
rubricEnabled: (withRubric == null ? void 0 : withRubric.settings) && toggle(withRubric == null ? void 0 : withRubric.label)
|
|
57263
55316
|
};
|
|
57264
|
-
return /*#__PURE__*/
|
|
55317
|
+
return /*#__PURE__*/React__default.createElement(layout.ConfigLayout, {
|
|
57265
55318
|
extraCSSRules: extraCSSRules,
|
|
57266
55319
|
dimensions: contentDimensions,
|
|
57267
55320
|
hideSettings: settingsPanelDisabled,
|
|
57268
|
-
settings: /*#__PURE__*/
|
|
55321
|
+
settings: /*#__PURE__*/React__default.createElement(Panel, {
|
|
57269
55322
|
model: model,
|
|
57270
55323
|
configuration: configuration,
|
|
57271
55324
|
onChangeModel: model => onModelChanged(model),
|
|
@@ -57275,10 +55328,10 @@ class Configure extends React$1.Component {
|
|
|
57275
55328
|
Properties: panelProperties
|
|
57276
55329
|
}
|
|
57277
55330
|
})
|
|
57278
|
-
}, teacherInstructionsEnabled && /*#__PURE__*/
|
|
55331
|
+
}, teacherInstructionsEnabled && /*#__PURE__*/React__default.createElement(InputContainer, {
|
|
57279
55332
|
label: teacherInstructions.label,
|
|
57280
55333
|
className: classes.promptHolder
|
|
57281
|
-
}, /*#__PURE__*/
|
|
55334
|
+
}, /*#__PURE__*/React__default.createElement(EditableHtml, {
|
|
57282
55335
|
className: classes.prompt,
|
|
57283
55336
|
markup: model.teacherInstructions || '',
|
|
57284
55337
|
onChange: this.changeTeacherInstructions,
|
|
@@ -57297,9 +55350,9 @@ class Configure extends React$1.Component {
|
|
|
57297
55350
|
language: 'special'
|
|
57298
55351
|
}],
|
|
57299
55352
|
mathMlOptions: mathMlOptions
|
|
57300
|
-
}), teacherInstructionsError && /*#__PURE__*/
|
|
55353
|
+
}), teacherInstructionsError && /*#__PURE__*/React__default.createElement("div", {
|
|
57301
55354
|
className: classes.errorText
|
|
57302
|
-
}, teacherInstructionsError)), /*#__PURE__*/
|
|
55355
|
+
}, teacherInstructionsError)), /*#__PURE__*/React__default.createElement(GeneralConfigBlock$1, {
|
|
57303
55356
|
imageSupport: imageSupport,
|
|
57304
55357
|
uploadSoundSupport: uploadSoundSupport,
|
|
57305
55358
|
model: model,
|
|
@@ -57309,7 +55362,7 @@ class Configure extends React$1.Component {
|
|
|
57309
55362
|
promptEnabled: promptEnabled,
|
|
57310
55363
|
toolbarOpts: toolbarOpts,
|
|
57311
55364
|
spellCheck: spellCheckEnabled
|
|
57312
|
-
}), feedbackEnabled && /*#__PURE__*/
|
|
55365
|
+
}), feedbackEnabled && /*#__PURE__*/React__default.createElement(FeedbackConfig, {
|
|
57313
55366
|
feedback: model.feedback,
|
|
57314
55367
|
onChange: this.onFeedbackChange,
|
|
57315
55368
|
toolbarOpts: toolbarOpts
|
|
@@ -57676,7 +55729,7 @@ class MathInlineConfigure extends HTMLElement {
|
|
|
57676
55729
|
|
|
57677
55730
|
_render() {
|
|
57678
55731
|
if (this._model) {
|
|
57679
|
-
const el = /*#__PURE__*/
|
|
55732
|
+
const el = /*#__PURE__*/React__default.createElement(Configure$1, {
|
|
57680
55733
|
onModelChanged: this.onModelChanged.bind(this),
|
|
57681
55734
|
onConfigurationChanged: this.onConfigurationChanged.bind(this),
|
|
57682
55735
|
model: this._model,
|