Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/wpforms-.../assets/js/integrat.../divi
File: formselector.es5.js
[1500] Fix | Delete
var emptyObject = {};
[1501] Fix | Delete
[1502] Fix | Delete
{
[1503] Fix | Delete
Object.freeze(emptyObject);
[1504] Fix | Delete
}
[1505] Fix | Delete
/**
[1506] Fix | Delete
* Base class helpers for the updating state of a component.
[1507] Fix | Delete
*/
[1508] Fix | Delete
[1509] Fix | Delete
[1510] Fix | Delete
function Component(props, context, updater) {
[1511] Fix | Delete
this.props = props;
[1512] Fix | Delete
this.context = context; // If a component has string refs, we will assign a different object later.
[1513] Fix | Delete
[1514] Fix | Delete
this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the
[1515] Fix | Delete
// renderer.
[1516] Fix | Delete
[1517] Fix | Delete
this.updater = updater || ReactNoopUpdateQueue;
[1518] Fix | Delete
}
[1519] Fix | Delete
[1520] Fix | Delete
Component.prototype.isReactComponent = {};
[1521] Fix | Delete
/**
[1522] Fix | Delete
* Sets a subset of the state. Always use this to mutate
[1523] Fix | Delete
* state. You should treat `this.state` as immutable.
[1524] Fix | Delete
*
[1525] Fix | Delete
* There is no guarantee that `this.state` will be immediately updated, so
[1526] Fix | Delete
* accessing `this.state` after calling this method may return the old value.
[1527] Fix | Delete
*
[1528] Fix | Delete
* There is no guarantee that calls to `setState` will run synchronously,
[1529] Fix | Delete
* as they may eventually be batched together. You can provide an optional
[1530] Fix | Delete
* callback that will be executed when the call to setState is actually
[1531] Fix | Delete
* completed.
[1532] Fix | Delete
*
[1533] Fix | Delete
* When a function is provided to setState, it will be called at some point in
[1534] Fix | Delete
* the future (not synchronously). It will be called with the up to date
[1535] Fix | Delete
* component arguments (state, props, context). These values can be different
[1536] Fix | Delete
* from this.* because your function may be called after receiveProps but before
[1537] Fix | Delete
* shouldComponentUpdate, and this new state, props, and context will not yet be
[1538] Fix | Delete
* assigned to this.
[1539] Fix | Delete
*
[1540] Fix | Delete
* @param {object|function} partialState Next partial state or function to
[1541] Fix | Delete
* produce next partial state to be merged with current state.
[1542] Fix | Delete
* @param {?function} callback Called after state is updated.
[1543] Fix | Delete
* @final
[1544] Fix | Delete
* @protected
[1545] Fix | Delete
*/
[1546] Fix | Delete
[1547] Fix | Delete
Component.prototype.setState = function (partialState, callback) {
[1548] Fix | Delete
if (typeof partialState !== 'object' && typeof partialState !== 'function' && partialState != null) {
[1549] Fix | Delete
throw new Error('setState(...): takes an object of state variables to update or a ' + 'function which returns an object of state variables.');
[1550] Fix | Delete
}
[1551] Fix | Delete
[1552] Fix | Delete
this.updater.enqueueSetState(this, partialState, callback, 'setState');
[1553] Fix | Delete
};
[1554] Fix | Delete
/**
[1555] Fix | Delete
* Forces an update. This should only be invoked when it is known with
[1556] Fix | Delete
* certainty that we are **not** in a DOM transaction.
[1557] Fix | Delete
*
[1558] Fix | Delete
* You may want to call this when you know that some deeper aspect of the
[1559] Fix | Delete
* component's state has changed but `setState` was not called.
[1560] Fix | Delete
*
[1561] Fix | Delete
* This will not invoke `shouldComponentUpdate`, but it will invoke
[1562] Fix | Delete
* `componentWillUpdate` and `componentDidUpdate`.
[1563] Fix | Delete
*
[1564] Fix | Delete
* @param {?function} callback Called after update is complete.
[1565] Fix | Delete
* @final
[1566] Fix | Delete
* @protected
[1567] Fix | Delete
*/
[1568] Fix | Delete
[1569] Fix | Delete
[1570] Fix | Delete
Component.prototype.forceUpdate = function (callback) {
[1571] Fix | Delete
this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
[1572] Fix | Delete
};
[1573] Fix | Delete
/**
[1574] Fix | Delete
* Deprecated APIs. These APIs used to exist on classic React classes but since
[1575] Fix | Delete
* we would like to deprecate them, we're not going to move them over to this
[1576] Fix | Delete
* modern base class. Instead, we define a getter that warns if it's accessed.
[1577] Fix | Delete
*/
[1578] Fix | Delete
[1579] Fix | Delete
[1580] Fix | Delete
{
[1581] Fix | Delete
var deprecatedAPIs = {
[1582] Fix | Delete
isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
[1583] Fix | Delete
replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
[1584] Fix | Delete
};
[1585] Fix | Delete
[1586] Fix | Delete
var defineDeprecationWarning = function (methodName, info) {
[1587] Fix | Delete
Object.defineProperty(Component.prototype, methodName, {
[1588] Fix | Delete
get: function () {
[1589] Fix | Delete
warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
[1590] Fix | Delete
[1591] Fix | Delete
return undefined;
[1592] Fix | Delete
}
[1593] Fix | Delete
});
[1594] Fix | Delete
};
[1595] Fix | Delete
[1596] Fix | Delete
for (var fnName in deprecatedAPIs) {
[1597] Fix | Delete
if (deprecatedAPIs.hasOwnProperty(fnName)) {
[1598] Fix | Delete
defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
[1599] Fix | Delete
}
[1600] Fix | Delete
}
[1601] Fix | Delete
}
[1602] Fix | Delete
[1603] Fix | Delete
function ComponentDummy() {}
[1604] Fix | Delete
[1605] Fix | Delete
ComponentDummy.prototype = Component.prototype;
[1606] Fix | Delete
/**
[1607] Fix | Delete
* Convenience component with default shallow equality check for sCU.
[1608] Fix | Delete
*/
[1609] Fix | Delete
[1610] Fix | Delete
function PureComponent(props, context, updater) {
[1611] Fix | Delete
this.props = props;
[1612] Fix | Delete
this.context = context; // If a component has string refs, we will assign a different object later.
[1613] Fix | Delete
[1614] Fix | Delete
this.refs = emptyObject;
[1615] Fix | Delete
this.updater = updater || ReactNoopUpdateQueue;
[1616] Fix | Delete
}
[1617] Fix | Delete
[1618] Fix | Delete
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
[1619] Fix | Delete
pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.
[1620] Fix | Delete
[1621] Fix | Delete
assign(pureComponentPrototype, Component.prototype);
[1622] Fix | Delete
pureComponentPrototype.isPureReactComponent = true;
[1623] Fix | Delete
[1624] Fix | Delete
// an immutable object with a single mutable value
[1625] Fix | Delete
function createRef() {
[1626] Fix | Delete
var refObject = {
[1627] Fix | Delete
current: null
[1628] Fix | Delete
};
[1629] Fix | Delete
[1630] Fix | Delete
{
[1631] Fix | Delete
Object.seal(refObject);
[1632] Fix | Delete
}
[1633] Fix | Delete
[1634] Fix | Delete
return refObject;
[1635] Fix | Delete
}
[1636] Fix | Delete
[1637] Fix | Delete
var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
[1638] Fix | Delete
[1639] Fix | Delete
function isArray(a) {
[1640] Fix | Delete
return isArrayImpl(a);
[1641] Fix | Delete
}
[1642] Fix | Delete
[1643] Fix | Delete
/*
[1644] Fix | Delete
* The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
[1645] Fix | Delete
* and Temporal.* types. See https://github.com/facebook/react/pull/22064.
[1646] Fix | Delete
*
[1647] Fix | Delete
* The functions in this module will throw an easier-to-understand,
[1648] Fix | Delete
* easier-to-debug exception with a clear errors message message explaining the
[1649] Fix | Delete
* problem. (Instead of a confusing exception thrown inside the implementation
[1650] Fix | Delete
* of the `value` object).
[1651] Fix | Delete
*/
[1652] Fix | Delete
// $FlowFixMe only called in DEV, so void return is not possible.
[1653] Fix | Delete
function typeName(value) {
[1654] Fix | Delete
{
[1655] Fix | Delete
// toStringTag is needed for namespaced types like Temporal.Instant
[1656] Fix | Delete
var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
[1657] Fix | Delete
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
[1658] Fix | Delete
return type;
[1659] Fix | Delete
}
[1660] Fix | Delete
} // $FlowFixMe only called in DEV, so void return is not possible.
[1661] Fix | Delete
[1662] Fix | Delete
[1663] Fix | Delete
function willCoercionThrow(value) {
[1664] Fix | Delete
{
[1665] Fix | Delete
try {
[1666] Fix | Delete
testStringCoercion(value);
[1667] Fix | Delete
return false;
[1668] Fix | Delete
} catch (e) {
[1669] Fix | Delete
return true;
[1670] Fix | Delete
}
[1671] Fix | Delete
}
[1672] Fix | Delete
}
[1673] Fix | Delete
[1674] Fix | Delete
function testStringCoercion(value) {
[1675] Fix | Delete
// If you ended up here by following an exception call stack, here's what's
[1676] Fix | Delete
// happened: you supplied an object or symbol value to React (as a prop, key,
[1677] Fix | Delete
// DOM attribute, CSS property, string ref, etc.) and when React tried to
[1678] Fix | Delete
// coerce it to a string using `'' + value`, an exception was thrown.
[1679] Fix | Delete
//
[1680] Fix | Delete
// The most common types that will cause this exception are `Symbol` instances
[1681] Fix | Delete
// and Temporal objects like `Temporal.Instant`. But any object that has a
[1682] Fix | Delete
// `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
[1683] Fix | Delete
// exception. (Library authors do this to prevent users from using built-in
[1684] Fix | Delete
// numeric operators like `+` or comparison operators like `>=` because custom
[1685] Fix | Delete
// methods are needed to perform accurate arithmetic or comparison.)
[1686] Fix | Delete
//
[1687] Fix | Delete
// To fix the problem, coerce this object or symbol value to a string before
[1688] Fix | Delete
// passing it to React. The most reliable way is usually `String(value)`.
[1689] Fix | Delete
//
[1690] Fix | Delete
// To find which value is throwing, check the browser or debugger console.
[1691] Fix | Delete
// Before this exception was thrown, there should be `console.error` output
[1692] Fix | Delete
// that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
[1693] Fix | Delete
// problem and how that type was used: key, atrribute, input value prop, etc.
[1694] Fix | Delete
// In most cases, this console output also shows the component and its
[1695] Fix | Delete
// ancestor components where the exception happened.
[1696] Fix | Delete
//
[1697] Fix | Delete
// eslint-disable-next-line react-internal/safe-string-coercion
[1698] Fix | Delete
return '' + value;
[1699] Fix | Delete
}
[1700] Fix | Delete
function checkKeyStringCoercion(value) {
[1701] Fix | Delete
{
[1702] Fix | Delete
if (willCoercionThrow(value)) {
[1703] Fix | Delete
error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
[1704] Fix | Delete
[1705] Fix | Delete
return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
[1706] Fix | Delete
}
[1707] Fix | Delete
}
[1708] Fix | Delete
}
[1709] Fix | Delete
[1710] Fix | Delete
function getWrappedName(outerType, innerType, wrapperName) {
[1711] Fix | Delete
var displayName = outerType.displayName;
[1712] Fix | Delete
[1713] Fix | Delete
if (displayName) {
[1714] Fix | Delete
return displayName;
[1715] Fix | Delete
}
[1716] Fix | Delete
[1717] Fix | Delete
var functionName = innerType.displayName || innerType.name || '';
[1718] Fix | Delete
return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
[1719] Fix | Delete
} // Keep in sync with react-reconciler/getComponentNameFromFiber
[1720] Fix | Delete
[1721] Fix | Delete
[1722] Fix | Delete
function getContextName(type) {
[1723] Fix | Delete
return type.displayName || 'Context';
[1724] Fix | Delete
} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
[1725] Fix | Delete
[1726] Fix | Delete
[1727] Fix | Delete
function getComponentNameFromType(type) {
[1728] Fix | Delete
if (type == null) {
[1729] Fix | Delete
// Host root, text node or just invalid type.
[1730] Fix | Delete
return null;
[1731] Fix | Delete
}
[1732] Fix | Delete
[1733] Fix | Delete
{
[1734] Fix | Delete
if (typeof type.tag === 'number') {
[1735] Fix | Delete
error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
[1736] Fix | Delete
}
[1737] Fix | Delete
}
[1738] Fix | Delete
[1739] Fix | Delete
if (typeof type === 'function') {
[1740] Fix | Delete
return type.displayName || type.name || null;
[1741] Fix | Delete
}
[1742] Fix | Delete
[1743] Fix | Delete
if (typeof type === 'string') {
[1744] Fix | Delete
return type;
[1745] Fix | Delete
}
[1746] Fix | Delete
[1747] Fix | Delete
switch (type) {
[1748] Fix | Delete
case REACT_FRAGMENT_TYPE:
[1749] Fix | Delete
return 'Fragment';
[1750] Fix | Delete
[1751] Fix | Delete
case REACT_PORTAL_TYPE:
[1752] Fix | Delete
return 'Portal';
[1753] Fix | Delete
[1754] Fix | Delete
case REACT_PROFILER_TYPE:
[1755] Fix | Delete
return 'Profiler';
[1756] Fix | Delete
[1757] Fix | Delete
case REACT_STRICT_MODE_TYPE:
[1758] Fix | Delete
return 'StrictMode';
[1759] Fix | Delete
[1760] Fix | Delete
case REACT_SUSPENSE_TYPE:
[1761] Fix | Delete
return 'Suspense';
[1762] Fix | Delete
[1763] Fix | Delete
case REACT_SUSPENSE_LIST_TYPE:
[1764] Fix | Delete
return 'SuspenseList';
[1765] Fix | Delete
[1766] Fix | Delete
}
[1767] Fix | Delete
[1768] Fix | Delete
if (typeof type === 'object') {
[1769] Fix | Delete
switch (type.$$typeof) {
[1770] Fix | Delete
case REACT_CONTEXT_TYPE:
[1771] Fix | Delete
var context = type;
[1772] Fix | Delete
return getContextName(context) + '.Consumer';
[1773] Fix | Delete
[1774] Fix | Delete
case REACT_PROVIDER_TYPE:
[1775] Fix | Delete
var provider = type;
[1776] Fix | Delete
return getContextName(provider._context) + '.Provider';
[1777] Fix | Delete
[1778] Fix | Delete
case REACT_FORWARD_REF_TYPE:
[1779] Fix | Delete
return getWrappedName(type, type.render, 'ForwardRef');
[1780] Fix | Delete
[1781] Fix | Delete
case REACT_MEMO_TYPE:
[1782] Fix | Delete
var outerName = type.displayName || null;
[1783] Fix | Delete
[1784] Fix | Delete
if (outerName !== null) {
[1785] Fix | Delete
return outerName;
[1786] Fix | Delete
}
[1787] Fix | Delete
[1788] Fix | Delete
return getComponentNameFromType(type.type) || 'Memo';
[1789] Fix | Delete
[1790] Fix | Delete
case REACT_LAZY_TYPE:
[1791] Fix | Delete
{
[1792] Fix | Delete
var lazyComponent = type;
[1793] Fix | Delete
var payload = lazyComponent._payload;
[1794] Fix | Delete
var init = lazyComponent._init;
[1795] Fix | Delete
[1796] Fix | Delete
try {
[1797] Fix | Delete
return getComponentNameFromType(init(payload));
[1798] Fix | Delete
} catch (x) {
[1799] Fix | Delete
return null;
[1800] Fix | Delete
}
[1801] Fix | Delete
}
[1802] Fix | Delete
[1803] Fix | Delete
// eslint-disable-next-line no-fallthrough
[1804] Fix | Delete
}
[1805] Fix | Delete
}
[1806] Fix | Delete
[1807] Fix | Delete
return null;
[1808] Fix | Delete
}
[1809] Fix | Delete
[1810] Fix | Delete
var hasOwnProperty = Object.prototype.hasOwnProperty;
[1811] Fix | Delete
[1812] Fix | Delete
var RESERVED_PROPS = {
[1813] Fix | Delete
key: true,
[1814] Fix | Delete
ref: true,
[1815] Fix | Delete
__self: true,
[1816] Fix | Delete
__source: true
[1817] Fix | Delete
};
[1818] Fix | Delete
var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
[1819] Fix | Delete
[1820] Fix | Delete
{
[1821] Fix | Delete
didWarnAboutStringRefs = {};
[1822] Fix | Delete
}
[1823] Fix | Delete
[1824] Fix | Delete
function hasValidRef(config) {
[1825] Fix | Delete
{
[1826] Fix | Delete
if (hasOwnProperty.call(config, 'ref')) {
[1827] Fix | Delete
var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
[1828] Fix | Delete
[1829] Fix | Delete
if (getter && getter.isReactWarning) {
[1830] Fix | Delete
return false;
[1831] Fix | Delete
}
[1832] Fix | Delete
}
[1833] Fix | Delete
}
[1834] Fix | Delete
[1835] Fix | Delete
return config.ref !== undefined;
[1836] Fix | Delete
}
[1837] Fix | Delete
[1838] Fix | Delete
function hasValidKey(config) {
[1839] Fix | Delete
{
[1840] Fix | Delete
if (hasOwnProperty.call(config, 'key')) {
[1841] Fix | Delete
var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
[1842] Fix | Delete
[1843] Fix | Delete
if (getter && getter.isReactWarning) {
[1844] Fix | Delete
return false;
[1845] Fix | Delete
}
[1846] Fix | Delete
}
[1847] Fix | Delete
}
[1848] Fix | Delete
[1849] Fix | Delete
return config.key !== undefined;
[1850] Fix | Delete
}
[1851] Fix | Delete
[1852] Fix | Delete
function defineKeyPropWarningGetter(props, displayName) {
[1853] Fix | Delete
var warnAboutAccessingKey = function () {
[1854] Fix | Delete
{
[1855] Fix | Delete
if (!specialPropKeyWarningShown) {
[1856] Fix | Delete
specialPropKeyWarningShown = true;
[1857] Fix | Delete
[1858] Fix | Delete
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://reactjs.org/link/special-props)', displayName);
[1859] Fix | Delete
}
[1860] Fix | Delete
}
[1861] Fix | Delete
};
[1862] Fix | Delete
[1863] Fix | Delete
warnAboutAccessingKey.isReactWarning = true;
[1864] Fix | Delete
Object.defineProperty(props, 'key', {
[1865] Fix | Delete
get: warnAboutAccessingKey,
[1866] Fix | Delete
configurable: true
[1867] Fix | Delete
});
[1868] Fix | Delete
}
[1869] Fix | Delete
[1870] Fix | Delete
function defineRefPropWarningGetter(props, displayName) {
[1871] Fix | Delete
var warnAboutAccessingRef = function () {
[1872] Fix | Delete
{
[1873] Fix | Delete
if (!specialPropRefWarningShown) {
[1874] Fix | Delete
specialPropRefWarningShown = true;
[1875] Fix | Delete
[1876] Fix | Delete
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://reactjs.org/link/special-props)', displayName);
[1877] Fix | Delete
}
[1878] Fix | Delete
}
[1879] Fix | Delete
};
[1880] Fix | Delete
[1881] Fix | Delete
warnAboutAccessingRef.isReactWarning = true;
[1882] Fix | Delete
Object.defineProperty(props, 'ref', {
[1883] Fix | Delete
get: warnAboutAccessingRef,
[1884] Fix | Delete
configurable: true
[1885] Fix | Delete
});
[1886] Fix | Delete
}
[1887] Fix | Delete
[1888] Fix | Delete
function warnIfStringRefCannotBeAutoConverted(config) {
[1889] Fix | Delete
{
[1890] Fix | Delete
if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
[1891] Fix | Delete
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
[1892] Fix | Delete
[1893] Fix | Delete
if (!didWarnAboutStringRefs[componentName]) {
[1894] Fix | Delete
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://reactjs.org/link/strict-mode-string-ref', componentName, config.ref);
[1895] Fix | Delete
[1896] Fix | Delete
didWarnAboutStringRefs[componentName] = true;
[1897] Fix | Delete
}
[1898] Fix | Delete
}
[1899] Fix | Delete
}
[1900] Fix | Delete
}
[1901] Fix | Delete
/**
[1902] Fix | Delete
* Factory method to create a new React element. This no longer adheres to
[1903] Fix | Delete
* the class pattern, so do not use new to call it. Also, instanceof check
[1904] Fix | Delete
* will not work. Instead test $$typeof field against Symbol.for('react.element') to check
[1905] Fix | Delete
* if something is a React Element.
[1906] Fix | Delete
*
[1907] Fix | Delete
* @param {*} type
[1908] Fix | Delete
* @param {*} props
[1909] Fix | Delete
* @param {*} key
[1910] Fix | Delete
* @param {string|object} ref
[1911] Fix | Delete
* @param {*} owner
[1912] Fix | Delete
* @param {*} self A *temporary* helper to detect places where `this` is
[1913] Fix | Delete
* different from the `owner` when React.createElement is called, so that we
[1914] Fix | Delete
* can warn. We want to get rid of owner and replace string `ref`s with arrow
[1915] Fix | Delete
* functions, and as long as `this` and owner are the same, there will be no
[1916] Fix | Delete
* change in behavior.
[1917] Fix | Delete
* @param {*} source An annotation object (added by a transpiler or otherwise)
[1918] Fix | Delete
* indicating filename, line number, and/or other information.
[1919] Fix | Delete
* @internal
[1920] Fix | Delete
*/
[1921] Fix | Delete
[1922] Fix | Delete
[1923] Fix | Delete
var ReactElement = function (type, key, ref, self, source, owner, props) {
[1924] Fix | Delete
var element = {
[1925] Fix | Delete
// This tag allows us to uniquely identify this as a React Element
[1926] Fix | Delete
$$typeof: REACT_ELEMENT_TYPE,
[1927] Fix | Delete
// Built-in properties that belong on the element
[1928] Fix | Delete
type: type,
[1929] Fix | Delete
key: key,
[1930] Fix | Delete
ref: ref,
[1931] Fix | Delete
props: props,
[1932] Fix | Delete
// Record the component responsible for creating this element.
[1933] Fix | Delete
_owner: owner
[1934] Fix | Delete
};
[1935] Fix | Delete
[1936] Fix | Delete
{
[1937] Fix | Delete
// The validation flag is currently mutative. We put it on
[1938] Fix | Delete
// an external backing store so that we can freeze the whole object.
[1939] Fix | Delete
// This can be replaced with a WeakMap once they are implemented in
[1940] Fix | Delete
// commonly used development environments.
[1941] Fix | Delete
element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
[1942] Fix | Delete
// the validation flag non-enumerable (where possible, which should
[1943] Fix | Delete
// include every environment we run tests in), so the test framework
[1944] Fix | Delete
// ignores it.
[1945] Fix | Delete
[1946] Fix | Delete
Object.defineProperty(element._store, 'validated', {
[1947] Fix | Delete
configurable: false,
[1948] Fix | Delete
enumerable: false,
[1949] Fix | Delete
writable: true,
[1950] Fix | Delete
value: false
[1951] Fix | Delete
}); // self and source are DEV only properties.
[1952] Fix | Delete
[1953] Fix | Delete
Object.defineProperty(element, '_self', {
[1954] Fix | Delete
configurable: false,
[1955] Fix | Delete
enumerable: false,
[1956] Fix | Delete
writable: false,
[1957] Fix | Delete
value: self
[1958] Fix | Delete
}); // Two elements created in two different places should be considered
[1959] Fix | Delete
// equal for testing purposes and therefore we hide it from enumeration.
[1960] Fix | Delete
[1961] Fix | Delete
Object.defineProperty(element, '_source', {
[1962] Fix | Delete
configurable: false,
[1963] Fix | Delete
enumerable: false,
[1964] Fix | Delete
writable: false,
[1965] Fix | Delete
value: source
[1966] Fix | Delete
});
[1967] Fix | Delete
[1968] Fix | Delete
if (Object.freeze) {
[1969] Fix | Delete
Object.freeze(element.props);
[1970] Fix | Delete
Object.freeze(element);
[1971] Fix | Delete
}
[1972] Fix | Delete
}
[1973] Fix | Delete
[1974] Fix | Delete
return element;
[1975] Fix | Delete
};
[1976] Fix | Delete
/**
[1977] Fix | Delete
* Create and return a new ReactElement of the given type.
[1978] Fix | Delete
* See https://reactjs.org/docs/react-api.html#createelement
[1979] Fix | Delete
*/
[1980] Fix | Delete
[1981] Fix | Delete
function createElement(type, config, children) {
[1982] Fix | Delete
var propName; // Reserved names are extracted
[1983] Fix | Delete
[1984] Fix | Delete
var props = {};
[1985] Fix | Delete
var key = null;
[1986] Fix | Delete
var ref = null;
[1987] Fix | Delete
var self = null;
[1988] Fix | Delete
var source = null;
[1989] Fix | Delete
[1990] Fix | Delete
if (config != null) {
[1991] Fix | Delete
if (hasValidRef(config)) {
[1992] Fix | Delete
ref = config.ref;
[1993] Fix | Delete
[1994] Fix | Delete
{
[1995] Fix | Delete
warnIfStringRefCannotBeAutoConverted(config);
[1996] Fix | Delete
}
[1997] Fix | Delete
}
[1998] Fix | Delete
[1999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function