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-inclu.../js/dist
File: data.js
/******/ __webpack_require__.d = (exports, definition) => {
[500] Fix | Delete
/******/ for(var key in definition) {
[501] Fix | Delete
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
[502] Fix | Delete
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
[503] Fix | Delete
/******/ }
[504] Fix | Delete
/******/ }
[505] Fix | Delete
/******/ };
[506] Fix | Delete
/******/ })();
[507] Fix | Delete
/******/
[508] Fix | Delete
/******/ /* webpack/runtime/hasOwnProperty shorthand */
[509] Fix | Delete
/******/ (() => {
[510] Fix | Delete
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
[511] Fix | Delete
/******/ })();
[512] Fix | Delete
/******/
[513] Fix | Delete
/******/ /* webpack/runtime/make namespace object */
[514] Fix | Delete
/******/ (() => {
[515] Fix | Delete
/******/ // define __esModule on exports
[516] Fix | Delete
/******/ __webpack_require__.r = (exports) => {
[517] Fix | Delete
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
[518] Fix | Delete
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
[519] Fix | Delete
/******/ }
[520] Fix | Delete
/******/ Object.defineProperty(exports, '__esModule', { value: true });
[521] Fix | Delete
/******/ };
[522] Fix | Delete
/******/ })();
[523] Fix | Delete
/******/
[524] Fix | Delete
/************************************************************************/
[525] Fix | Delete
var __webpack_exports__ = {};
[526] Fix | Delete
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
[527] Fix | Delete
(() => {
[528] Fix | Delete
// ESM COMPAT FLAG
[529] Fix | Delete
__webpack_require__.r(__webpack_exports__);
[530] Fix | Delete
[531] Fix | Delete
// EXPORTS
[532] Fix | Delete
__webpack_require__.d(__webpack_exports__, {
[533] Fix | Delete
AsyncModeProvider: () => (/* reexport */ async_mode_provider_context),
[534] Fix | Delete
RegistryConsumer: () => (/* reexport */ RegistryConsumer),
[535] Fix | Delete
RegistryProvider: () => (/* reexport */ context),
[536] Fix | Delete
combineReducers: () => (/* binding */ build_module_combineReducers),
[537] Fix | Delete
controls: () => (/* reexport */ controls),
[538] Fix | Delete
createReduxStore: () => (/* reexport */ createReduxStore),
[539] Fix | Delete
createRegistry: () => (/* reexport */ createRegistry),
[540] Fix | Delete
createRegistryControl: () => (/* reexport */ createRegistryControl),
[541] Fix | Delete
createRegistrySelector: () => (/* reexport */ createRegistrySelector),
[542] Fix | Delete
createSelector: () => (/* reexport */ rememo),
[543] Fix | Delete
dispatch: () => (/* reexport */ dispatch_dispatch),
[544] Fix | Delete
plugins: () => (/* reexport */ plugins_namespaceObject),
[545] Fix | Delete
register: () => (/* binding */ register),
[546] Fix | Delete
registerGenericStore: () => (/* binding */ registerGenericStore),
[547] Fix | Delete
registerStore: () => (/* binding */ registerStore),
[548] Fix | Delete
resolveSelect: () => (/* binding */ build_module_resolveSelect),
[549] Fix | Delete
select: () => (/* reexport */ select_select),
[550] Fix | Delete
subscribe: () => (/* binding */ subscribe),
[551] Fix | Delete
suspendSelect: () => (/* binding */ suspendSelect),
[552] Fix | Delete
use: () => (/* binding */ use),
[553] Fix | Delete
useDispatch: () => (/* reexport */ use_dispatch),
[554] Fix | Delete
useRegistry: () => (/* reexport */ useRegistry),
[555] Fix | Delete
useSelect: () => (/* reexport */ useSelect),
[556] Fix | Delete
useSuspenseSelect: () => (/* reexport */ useSuspenseSelect),
[557] Fix | Delete
withDispatch: () => (/* reexport */ with_dispatch),
[558] Fix | Delete
withRegistry: () => (/* reexport */ with_registry),
[559] Fix | Delete
withSelect: () => (/* reexport */ with_select)
[560] Fix | Delete
});
[561] Fix | Delete
[562] Fix | Delete
// NAMESPACE OBJECT: ./node_modules/@wordpress/data/build-module/redux-store/metadata/selectors.js
[563] Fix | Delete
var selectors_namespaceObject = {};
[564] Fix | Delete
__webpack_require__.r(selectors_namespaceObject);
[565] Fix | Delete
__webpack_require__.d(selectors_namespaceObject, {
[566] Fix | Delete
countSelectorsByStatus: () => (countSelectorsByStatus),
[567] Fix | Delete
getCachedResolvers: () => (getCachedResolvers),
[568] Fix | Delete
getIsResolving: () => (getIsResolving),
[569] Fix | Delete
getResolutionError: () => (getResolutionError),
[570] Fix | Delete
getResolutionState: () => (getResolutionState),
[571] Fix | Delete
hasFinishedResolution: () => (hasFinishedResolution),
[572] Fix | Delete
hasResolutionFailed: () => (hasResolutionFailed),
[573] Fix | Delete
hasResolvingSelectors: () => (hasResolvingSelectors),
[574] Fix | Delete
hasStartedResolution: () => (hasStartedResolution),
[575] Fix | Delete
isResolving: () => (isResolving)
[576] Fix | Delete
});
[577] Fix | Delete
[578] Fix | Delete
// NAMESPACE OBJECT: ./node_modules/@wordpress/data/build-module/redux-store/metadata/actions.js
[579] Fix | Delete
var actions_namespaceObject = {};
[580] Fix | Delete
__webpack_require__.r(actions_namespaceObject);
[581] Fix | Delete
__webpack_require__.d(actions_namespaceObject, {
[582] Fix | Delete
failResolution: () => (failResolution),
[583] Fix | Delete
failResolutions: () => (failResolutions),
[584] Fix | Delete
finishResolution: () => (finishResolution),
[585] Fix | Delete
finishResolutions: () => (finishResolutions),
[586] Fix | Delete
invalidateResolution: () => (invalidateResolution),
[587] Fix | Delete
invalidateResolutionForStore: () => (invalidateResolutionForStore),
[588] Fix | Delete
invalidateResolutionForStoreSelector: () => (invalidateResolutionForStoreSelector),
[589] Fix | Delete
startResolution: () => (startResolution),
[590] Fix | Delete
startResolutions: () => (startResolutions)
[591] Fix | Delete
});
[592] Fix | Delete
[593] Fix | Delete
// NAMESPACE OBJECT: ./node_modules/@wordpress/data/build-module/plugins/index.js
[594] Fix | Delete
var plugins_namespaceObject = {};
[595] Fix | Delete
__webpack_require__.r(plugins_namespaceObject);
[596] Fix | Delete
__webpack_require__.d(plugins_namespaceObject, {
[597] Fix | Delete
persistence: () => (persistence)
[598] Fix | Delete
});
[599] Fix | Delete
[600] Fix | Delete
;// CONCATENATED MODULE: external ["wp","deprecated"]
[601] Fix | Delete
const external_wp_deprecated_namespaceObject = window["wp"]["deprecated"];
[602] Fix | Delete
var external_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_wp_deprecated_namespaceObject);
[603] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
[604] Fix | Delete
function _typeof(o) {
[605] Fix | Delete
"@babel/helpers - typeof";
[606] Fix | Delete
[607] Fix | Delete
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
[608] Fix | Delete
return typeof o;
[609] Fix | Delete
} : function (o) {
[610] Fix | Delete
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
[611] Fix | Delete
}, _typeof(o);
[612] Fix | Delete
}
[613] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
[614] Fix | Delete
[615] Fix | Delete
function _toPrimitive(input, hint) {
[616] Fix | Delete
if (_typeof(input) !== "object" || input === null) return input;
[617] Fix | Delete
var prim = input[Symbol.toPrimitive];
[618] Fix | Delete
if (prim !== undefined) {
[619] Fix | Delete
var res = prim.call(input, hint || "default");
[620] Fix | Delete
if (_typeof(res) !== "object") return res;
[621] Fix | Delete
throw new TypeError("@@toPrimitive must return a primitive value.");
[622] Fix | Delete
}
[623] Fix | Delete
return (hint === "string" ? String : Number)(input);
[624] Fix | Delete
}
[625] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
[626] Fix | Delete
[627] Fix | Delete
[628] Fix | Delete
function _toPropertyKey(arg) {
[629] Fix | Delete
var key = _toPrimitive(arg, "string");
[630] Fix | Delete
return _typeof(key) === "symbol" ? key : String(key);
[631] Fix | Delete
}
[632] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
[633] Fix | Delete
[634] Fix | Delete
function _defineProperty(obj, key, value) {
[635] Fix | Delete
key = _toPropertyKey(key);
[636] Fix | Delete
if (key in obj) {
[637] Fix | Delete
Object.defineProperty(obj, key, {
[638] Fix | Delete
value: value,
[639] Fix | Delete
enumerable: true,
[640] Fix | Delete
configurable: true,
[641] Fix | Delete
writable: true
[642] Fix | Delete
});
[643] Fix | Delete
} else {
[644] Fix | Delete
obj[key] = value;
[645] Fix | Delete
}
[646] Fix | Delete
return obj;
[647] Fix | Delete
}
[648] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
[649] Fix | Delete
[650] Fix | Delete
function ownKeys(e, r) {
[651] Fix | Delete
var t = Object.keys(e);
[652] Fix | Delete
if (Object.getOwnPropertySymbols) {
[653] Fix | Delete
var o = Object.getOwnPropertySymbols(e);
[654] Fix | Delete
r && (o = o.filter(function (r) {
[655] Fix | Delete
return Object.getOwnPropertyDescriptor(e, r).enumerable;
[656] Fix | Delete
})), t.push.apply(t, o);
[657] Fix | Delete
}
[658] Fix | Delete
return t;
[659] Fix | Delete
}
[660] Fix | Delete
function _objectSpread2(e) {
[661] Fix | Delete
for (var r = 1; r < arguments.length; r++) {
[662] Fix | Delete
var t = null != arguments[r] ? arguments[r] : {};
[663] Fix | Delete
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
[664] Fix | Delete
_defineProperty(e, r, t[r]);
[665] Fix | Delete
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
[666] Fix | Delete
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
[667] Fix | Delete
});
[668] Fix | Delete
}
[669] Fix | Delete
return e;
[670] Fix | Delete
}
[671] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/redux/es/redux.js
[672] Fix | Delete
[673] Fix | Delete
[674] Fix | Delete
/**
[675] Fix | Delete
* Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js
[676] Fix | Delete
*
[677] Fix | Delete
* Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes
[678] Fix | Delete
* during build.
[679] Fix | Delete
* @param {number} code
[680] Fix | Delete
*/
[681] Fix | Delete
function formatProdErrorMessage(code) {
[682] Fix | Delete
return "Minified Redux error #" + code + "; visit https://redux.js.org/Errors?code=" + code + " for the full message or " + 'use the non-minified dev environment for full errors. ';
[683] Fix | Delete
}
[684] Fix | Delete
[685] Fix | Delete
// Inlined version of the `symbol-observable` polyfill
[686] Fix | Delete
var $$observable = (function () {
[687] Fix | Delete
return typeof Symbol === 'function' && Symbol.observable || '@@observable';
[688] Fix | Delete
})();
[689] Fix | Delete
[690] Fix | Delete
/**
[691] Fix | Delete
* These are private action types reserved by Redux.
[692] Fix | Delete
* For any unknown actions, you must return the current state.
[693] Fix | Delete
* If the current state is undefined, you must return the initial state.
[694] Fix | Delete
* Do not reference these action types directly in your code.
[695] Fix | Delete
*/
[696] Fix | Delete
var randomString = function randomString() {
[697] Fix | Delete
return Math.random().toString(36).substring(7).split('').join('.');
[698] Fix | Delete
};
[699] Fix | Delete
[700] Fix | Delete
var ActionTypes = {
[701] Fix | Delete
INIT: "@@redux/INIT" + randomString(),
[702] Fix | Delete
REPLACE: "@@redux/REPLACE" + randomString(),
[703] Fix | Delete
PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {
[704] Fix | Delete
return "@@redux/PROBE_UNKNOWN_ACTION" + randomString();
[705] Fix | Delete
}
[706] Fix | Delete
};
[707] Fix | Delete
[708] Fix | Delete
/**
[709] Fix | Delete
* @param {any} obj The object to inspect.
[710] Fix | Delete
* @returns {boolean} True if the argument appears to be a plain object.
[711] Fix | Delete
*/
[712] Fix | Delete
function isPlainObject(obj) {
[713] Fix | Delete
if (typeof obj !== 'object' || obj === null) return false;
[714] Fix | Delete
var proto = obj;
[715] Fix | Delete
[716] Fix | Delete
while (Object.getPrototypeOf(proto) !== null) {
[717] Fix | Delete
proto = Object.getPrototypeOf(proto);
[718] Fix | Delete
}
[719] Fix | Delete
[720] Fix | Delete
return Object.getPrototypeOf(obj) === proto;
[721] Fix | Delete
}
[722] Fix | Delete
[723] Fix | Delete
// Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of
[724] Fix | Delete
function miniKindOf(val) {
[725] Fix | Delete
if (val === void 0) return 'undefined';
[726] Fix | Delete
if (val === null) return 'null';
[727] Fix | Delete
var type = typeof val;
[728] Fix | Delete
[729] Fix | Delete
switch (type) {
[730] Fix | Delete
case 'boolean':
[731] Fix | Delete
case 'string':
[732] Fix | Delete
case 'number':
[733] Fix | Delete
case 'symbol':
[734] Fix | Delete
case 'function':
[735] Fix | Delete
{
[736] Fix | Delete
return type;
[737] Fix | Delete
}
[738] Fix | Delete
}
[739] Fix | Delete
[740] Fix | Delete
if (Array.isArray(val)) return 'array';
[741] Fix | Delete
if (isDate(val)) return 'date';
[742] Fix | Delete
if (isError(val)) return 'error';
[743] Fix | Delete
var constructorName = ctorName(val);
[744] Fix | Delete
[745] Fix | Delete
switch (constructorName) {
[746] Fix | Delete
case 'Symbol':
[747] Fix | Delete
case 'Promise':
[748] Fix | Delete
case 'WeakMap':
[749] Fix | Delete
case 'WeakSet':
[750] Fix | Delete
case 'Map':
[751] Fix | Delete
case 'Set':
[752] Fix | Delete
return constructorName;
[753] Fix | Delete
} // other
[754] Fix | Delete
[755] Fix | Delete
[756] Fix | Delete
return type.slice(8, -1).toLowerCase().replace(/\s/g, '');
[757] Fix | Delete
}
[758] Fix | Delete
[759] Fix | Delete
function ctorName(val) {
[760] Fix | Delete
return typeof val.constructor === 'function' ? val.constructor.name : null;
[761] Fix | Delete
}
[762] Fix | Delete
[763] Fix | Delete
function isError(val) {
[764] Fix | Delete
return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number';
[765] Fix | Delete
}
[766] Fix | Delete
[767] Fix | Delete
function isDate(val) {
[768] Fix | Delete
if (val instanceof Date) return true;
[769] Fix | Delete
return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function';
[770] Fix | Delete
}
[771] Fix | Delete
[772] Fix | Delete
function kindOf(val) {
[773] Fix | Delete
var typeOfVal = typeof val;
[774] Fix | Delete
[775] Fix | Delete
if (false) {}
[776] Fix | Delete
[777] Fix | Delete
return typeOfVal;
[778] Fix | Delete
}
[779] Fix | Delete
[780] Fix | Delete
/**
[781] Fix | Delete
* @deprecated
[782] Fix | Delete
*
[783] Fix | Delete
* **We recommend using the `configureStore` method
[784] Fix | Delete
* of the `@reduxjs/toolkit` package**, which replaces `createStore`.
[785] Fix | Delete
*
[786] Fix | Delete
* Redux Toolkit is our recommended approach for writing Redux logic today,
[787] Fix | Delete
* including store setup, reducers, data fetching, and more.
[788] Fix | Delete
*
[789] Fix | Delete
* **For more details, please read this Redux docs page:**
[790] Fix | Delete
* **https://redux.js.org/introduction/why-rtk-is-redux-today**
[791] Fix | Delete
*
[792] Fix | Delete
* `configureStore` from Redux Toolkit is an improved version of `createStore` that
[793] Fix | Delete
* simplifies setup and helps avoid common bugs.
[794] Fix | Delete
*
[795] Fix | Delete
* You should not be using the `redux` core package by itself today, except for learning purposes.
[796] Fix | Delete
* The `createStore` method from the core `redux` package will not be removed, but we encourage
[797] Fix | Delete
* all users to migrate to using Redux Toolkit for all Redux code.
[798] Fix | Delete
*
[799] Fix | Delete
* If you want to use `createStore` without this visual deprecation warning, use
[800] Fix | Delete
* the `legacy_createStore` import instead:
[801] Fix | Delete
*
[802] Fix | Delete
* `import { legacy_createStore as createStore} from 'redux'`
[803] Fix | Delete
*
[804] Fix | Delete
*/
[805] Fix | Delete
[806] Fix | Delete
function createStore(reducer, preloadedState, enhancer) {
[807] Fix | Delete
var _ref2;
[808] Fix | Delete
[809] Fix | Delete
if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {
[810] Fix | Delete
throw new Error( true ? formatProdErrorMessage(0) : 0);
[811] Fix | Delete
}
[812] Fix | Delete
[813] Fix | Delete
if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {
[814] Fix | Delete
enhancer = preloadedState;
[815] Fix | Delete
preloadedState = undefined;
[816] Fix | Delete
}
[817] Fix | Delete
[818] Fix | Delete
if (typeof enhancer !== 'undefined') {
[819] Fix | Delete
if (typeof enhancer !== 'function') {
[820] Fix | Delete
throw new Error( true ? formatProdErrorMessage(1) : 0);
[821] Fix | Delete
}
[822] Fix | Delete
[823] Fix | Delete
return enhancer(createStore)(reducer, preloadedState);
[824] Fix | Delete
}
[825] Fix | Delete
[826] Fix | Delete
if (typeof reducer !== 'function') {
[827] Fix | Delete
throw new Error( true ? formatProdErrorMessage(2) : 0);
[828] Fix | Delete
}
[829] Fix | Delete
[830] Fix | Delete
var currentReducer = reducer;
[831] Fix | Delete
var currentState = preloadedState;
[832] Fix | Delete
var currentListeners = [];
[833] Fix | Delete
var nextListeners = currentListeners;
[834] Fix | Delete
var isDispatching = false;
[835] Fix | Delete
/**
[836] Fix | Delete
* This makes a shallow copy of currentListeners so we can use
[837] Fix | Delete
* nextListeners as a temporary list while dispatching.
[838] Fix | Delete
*
[839] Fix | Delete
* This prevents any bugs around consumers calling
[840] Fix | Delete
* subscribe/unsubscribe in the middle of a dispatch.
[841] Fix | Delete
*/
[842] Fix | Delete
[843] Fix | Delete
function ensureCanMutateNextListeners() {
[844] Fix | Delete
if (nextListeners === currentListeners) {
[845] Fix | Delete
nextListeners = currentListeners.slice();
[846] Fix | Delete
}
[847] Fix | Delete
}
[848] Fix | Delete
/**
[849] Fix | Delete
* Reads the state tree managed by the store.
[850] Fix | Delete
*
[851] Fix | Delete
* @returns {any} The current state tree of your application.
[852] Fix | Delete
*/
[853] Fix | Delete
[854] Fix | Delete
[855] Fix | Delete
function getState() {
[856] Fix | Delete
if (isDispatching) {
[857] Fix | Delete
throw new Error( true ? formatProdErrorMessage(3) : 0);
[858] Fix | Delete
}
[859] Fix | Delete
[860] Fix | Delete
return currentState;
[861] Fix | Delete
}
[862] Fix | Delete
/**
[863] Fix | Delete
* Adds a change listener. It will be called any time an action is dispatched,
[864] Fix | Delete
* and some part of the state tree may potentially have changed. You may then
[865] Fix | Delete
* call `getState()` to read the current state tree inside the callback.
[866] Fix | Delete
*
[867] Fix | Delete
* You may call `dispatch()` from a change listener, with the following
[868] Fix | Delete
* caveats:
[869] Fix | Delete
*
[870] Fix | Delete
* 1. The subscriptions are snapshotted just before every `dispatch()` call.
[871] Fix | Delete
* If you subscribe or unsubscribe while the listeners are being invoked, this
[872] Fix | Delete
* will not have any effect on the `dispatch()` that is currently in progress.
[873] Fix | Delete
* However, the next `dispatch()` call, whether nested or not, will use a more
[874] Fix | Delete
* recent snapshot of the subscription list.
[875] Fix | Delete
*
[876] Fix | Delete
* 2. The listener should not expect to see all state changes, as the state
[877] Fix | Delete
* might have been updated multiple times during a nested `dispatch()` before
[878] Fix | Delete
* the listener is called. It is, however, guaranteed that all subscribers
[879] Fix | Delete
* registered before the `dispatch()` started will be called with the latest
[880] Fix | Delete
* state by the time it exits.
[881] Fix | Delete
*
[882] Fix | Delete
* @param {Function} listener A callback to be invoked on every dispatch.
[883] Fix | Delete
* @returns {Function} A function to remove this change listener.
[884] Fix | Delete
*/
[885] Fix | Delete
[886] Fix | Delete
[887] Fix | Delete
function subscribe(listener) {
[888] Fix | Delete
if (typeof listener !== 'function') {
[889] Fix | Delete
throw new Error( true ? formatProdErrorMessage(4) : 0);
[890] Fix | Delete
}
[891] Fix | Delete
[892] Fix | Delete
if (isDispatching) {
[893] Fix | Delete
throw new Error( true ? formatProdErrorMessage(5) : 0);
[894] Fix | Delete
}
[895] Fix | Delete
[896] Fix | Delete
var isSubscribed = true;
[897] Fix | Delete
ensureCanMutateNextListeners();
[898] Fix | Delete
nextListeners.push(listener);
[899] Fix | Delete
return function unsubscribe() {
[900] Fix | Delete
if (!isSubscribed) {
[901] Fix | Delete
return;
[902] Fix | Delete
}
[903] Fix | Delete
[904] Fix | Delete
if (isDispatching) {
[905] Fix | Delete
throw new Error( true ? formatProdErrorMessage(6) : 0);
[906] Fix | Delete
}
[907] Fix | Delete
[908] Fix | Delete
isSubscribed = false;
[909] Fix | Delete
ensureCanMutateNextListeners();
[910] Fix | Delete
var index = nextListeners.indexOf(listener);
[911] Fix | Delete
nextListeners.splice(index, 1);
[912] Fix | Delete
currentListeners = null;
[913] Fix | Delete
};
[914] Fix | Delete
}
[915] Fix | Delete
/**
[916] Fix | Delete
* Dispatches an action. It is the only way to trigger a state change.
[917] Fix | Delete
*
[918] Fix | Delete
* The `reducer` function, used to create the store, will be called with the
[919] Fix | Delete
* current state tree and the given `action`. Its return value will
[920] Fix | Delete
* be considered the **next** state of the tree, and the change listeners
[921] Fix | Delete
* will be notified.
[922] Fix | Delete
*
[923] Fix | Delete
* The base implementation only supports plain object actions. If you want to
[924] Fix | Delete
* dispatch a Promise, an Observable, a thunk, or something else, you need to
[925] Fix | Delete
* wrap your store creating function into the corresponding middleware. For
[926] Fix | Delete
* example, see the documentation for the `redux-thunk` package. Even the
[927] Fix | Delete
* middleware will eventually dispatch plain object actions using this method.
[928] Fix | Delete
*
[929] Fix | Delete
* @param {Object} action A plain object representing “what changed”. It is
[930] Fix | Delete
* a good idea to keep actions serializable so you can record and replay user
[931] Fix | Delete
* sessions, or use the time travelling `redux-devtools`. An action must have
[932] Fix | Delete
* a `type` property which may not be `undefined`. It is a good idea to use
[933] Fix | Delete
* string constants for action types.
[934] Fix | Delete
*
[935] Fix | Delete
* @returns {Object} For convenience, the same action object you dispatched.
[936] Fix | Delete
*
[937] Fix | Delete
* Note that, if you use a custom middleware, it may wrap `dispatch()` to
[938] Fix | Delete
* return something else (for example, a Promise you can await).
[939] Fix | Delete
*/
[940] Fix | Delete
[941] Fix | Delete
[942] Fix | Delete
function dispatch(action) {
[943] Fix | Delete
if (!isPlainObject(action)) {
[944] Fix | Delete
throw new Error( true ? formatProdErrorMessage(7) : 0);
[945] Fix | Delete
}
[946] Fix | Delete
[947] Fix | Delete
if (typeof action.type === 'undefined') {
[948] Fix | Delete
throw new Error( true ? formatProdErrorMessage(8) : 0);
[949] Fix | Delete
}
[950] Fix | Delete
[951] Fix | Delete
if (isDispatching) {
[952] Fix | Delete
throw new Error( true ? formatProdErrorMessage(9) : 0);
[953] Fix | Delete
}
[954] Fix | Delete
[955] Fix | Delete
try {
[956] Fix | Delete
isDispatching = true;
[957] Fix | Delete
currentState = currentReducer(currentState, action);
[958] Fix | Delete
} finally {
[959] Fix | Delete
isDispatching = false;
[960] Fix | Delete
}
[961] Fix | Delete
[962] Fix | Delete
var listeners = currentListeners = nextListeners;
[963] Fix | Delete
[964] Fix | Delete
for (var i = 0; i < listeners.length; i++) {
[965] Fix | Delete
var listener = listeners[i];
[966] Fix | Delete
listener();
[967] Fix | Delete
}
[968] Fix | Delete
[969] Fix | Delete
return action;
[970] Fix | Delete
}
[971] Fix | Delete
/**
[972] Fix | Delete
* Replaces the reducer currently used by the store to calculate the state.
[973] Fix | Delete
*
[974] Fix | Delete
* You might need this if your app implements code splitting and you want to
[975] Fix | Delete
* load some of the reducers dynamically. You might also need this if you
[976] Fix | Delete
* implement a hot reloading mechanism for Redux.
[977] Fix | Delete
*
[978] Fix | Delete
* @param {Function} nextReducer The reducer for the store to use instead.
[979] Fix | Delete
* @returns {void}
[980] Fix | Delete
*/
[981] Fix | Delete
[982] Fix | Delete
[983] Fix | Delete
function replaceReducer(nextReducer) {
[984] Fix | Delete
if (typeof nextReducer !== 'function') {
[985] Fix | Delete
throw new Error( true ? formatProdErrorMessage(10) : 0);
[986] Fix | Delete
}
[987] Fix | Delete
[988] Fix | Delete
currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT.
[989] Fix | Delete
// Any reducers that existed in both the new and old rootReducer
[990] Fix | Delete
// will receive the previous state. This effectively populates
[991] Fix | Delete
// the new state tree with any relevant data from the old one.
[992] Fix | Delete
[993] Fix | Delete
dispatch({
[994] Fix | Delete
type: ActionTypes.REPLACE
[995] Fix | Delete
});
[996] Fix | Delete
}
[997] Fix | Delete
/**
[998] Fix | Delete
* Interoperability point for observable/reactive libraries.
[999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function