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
[4500] Fix | Delete
[4501] Fix | Delete
/**
[4502] Fix | Delete
* Internal dependencies
[4503] Fix | Delete
*/
[4504] Fix | Delete
[4505] Fix | Delete
[4506] Fix | Delete
/**
[4507] Fix | Delete
* Higher-order component which renders the original component with the current
[4508] Fix | Delete
* registry context passed as its `registry` prop.
[4509] Fix | Delete
*
[4510] Fix | Delete
* @param {Component} OriginalComponent Original component.
[4511] Fix | Delete
*
[4512] Fix | Delete
* @return {Component} Enhanced component.
[4513] Fix | Delete
*/
[4514] Fix | Delete
[4515] Fix | Delete
const withRegistry = (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(OriginalComponent => props => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RegistryConsumer, {
[4516] Fix | Delete
children: registry => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(OriginalComponent, {
[4517] Fix | Delete
...props,
[4518] Fix | Delete
registry: registry
[4519] Fix | Delete
})
[4520] Fix | Delete
}), 'withRegistry');
[4521] Fix | Delete
/* harmony default export */ const with_registry = (withRegistry);
[4522] Fix | Delete
[4523] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/data/build-module/components/use-dispatch/use-dispatch.js
[4524] Fix | Delete
/**
[4525] Fix | Delete
* Internal dependencies
[4526] Fix | Delete
*/
[4527] Fix | Delete
[4528] Fix | Delete
[4529] Fix | Delete
/**
[4530] Fix | Delete
* @typedef {import('../../types').StoreDescriptor<StoreConfig>} StoreDescriptor
[4531] Fix | Delete
* @template {import('../../types').AnyConfig} StoreConfig
[4532] Fix | Delete
*/
[4533] Fix | Delete
/**
[4534] Fix | Delete
* @typedef {import('../../types').UseDispatchReturn<StoreNameOrDescriptor>} UseDispatchReturn
[4535] Fix | Delete
* @template StoreNameOrDescriptor
[4536] Fix | Delete
*/
[4537] Fix | Delete
[4538] Fix | Delete
/**
[4539] Fix | Delete
* A custom react hook returning the current registry dispatch actions creators.
[4540] Fix | Delete
*
[4541] Fix | Delete
* Note: The component using this hook must be within the context of a
[4542] Fix | Delete
* RegistryProvider.
[4543] Fix | Delete
*
[4544] Fix | Delete
* @template {undefined | string | StoreDescriptor<any>} StoreNameOrDescriptor
[4545] Fix | Delete
* @param {StoreNameOrDescriptor} [storeNameOrDescriptor] Optionally provide the name of the
[4546] Fix | Delete
* store or its descriptor from which to
[4547] Fix | Delete
* retrieve action creators. If not
[4548] Fix | Delete
* provided, the registry.dispatch
[4549] Fix | Delete
* function is returned instead.
[4550] Fix | Delete
*
[4551] Fix | Delete
* @example
[4552] Fix | Delete
* This illustrates a pattern where you may need to retrieve dynamic data from
[4553] Fix | Delete
* the server via the `useSelect` hook to use in combination with the dispatch
[4554] Fix | Delete
* action.
[4555] Fix | Delete
*
[4556] Fix | Delete
* ```jsx
[4557] Fix | Delete
* import { useCallback } from 'react';
[4558] Fix | Delete
* import { useDispatch, useSelect } from '@wordpress/data';
[4559] Fix | Delete
* import { store as myCustomStore } from 'my-custom-store';
[4560] Fix | Delete
*
[4561] Fix | Delete
* function Button( { onClick, children } ) {
[4562] Fix | Delete
* return <button type="button" onClick={ onClick }>{ children }</button>
[4563] Fix | Delete
* }
[4564] Fix | Delete
*
[4565] Fix | Delete
* const SaleButton = ( { children } ) => {
[4566] Fix | Delete
* const { stockNumber } = useSelect(
[4567] Fix | Delete
* ( select ) => select( myCustomStore ).getStockNumber(),
[4568] Fix | Delete
* []
[4569] Fix | Delete
* );
[4570] Fix | Delete
* const { startSale } = useDispatch( myCustomStore );
[4571] Fix | Delete
* const onClick = useCallback( () => {
[4572] Fix | Delete
* const discountPercent = stockNumber > 50 ? 10: 20;
[4573] Fix | Delete
* startSale( discountPercent );
[4574] Fix | Delete
* }, [ stockNumber ] );
[4575] Fix | Delete
* return <Button onClick={ onClick }>{ children }</Button>
[4576] Fix | Delete
* }
[4577] Fix | Delete
*
[4578] Fix | Delete
* // Rendered somewhere in the application:
[4579] Fix | Delete
* //
[4580] Fix | Delete
* // <SaleButton>Start Sale!</SaleButton>
[4581] Fix | Delete
* ```
[4582] Fix | Delete
* @return {UseDispatchReturn<StoreNameOrDescriptor>} A custom react hook.
[4583] Fix | Delete
*/
[4584] Fix | Delete
const useDispatch = storeNameOrDescriptor => {
[4585] Fix | Delete
const {
[4586] Fix | Delete
dispatch
[4587] Fix | Delete
} = useRegistry();
[4588] Fix | Delete
return storeNameOrDescriptor === void 0 ? dispatch : dispatch(storeNameOrDescriptor);
[4589] Fix | Delete
};
[4590] Fix | Delete
/* harmony default export */ const use_dispatch = (useDispatch);
[4591] Fix | Delete
[4592] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/data/build-module/dispatch.js
[4593] Fix | Delete
/**
[4594] Fix | Delete
* Internal dependencies
[4595] Fix | Delete
*/
[4596] Fix | Delete
[4597] Fix | Delete
[4598] Fix | Delete
[4599] Fix | Delete
/**
[4600] Fix | Delete
* Given a store descriptor, returns an object of the store's action creators.
[4601] Fix | Delete
* Calling an action creator will cause it to be dispatched, updating the state value accordingly.
[4602] Fix | Delete
*
[4603] Fix | Delete
* Note: Action creators returned by the dispatch will return a promise when
[4604] Fix | Delete
* they are called.
[4605] Fix | Delete
*
[4606] Fix | Delete
* @param storeNameOrDescriptor The store descriptor. The legacy calling convention of passing
[4607] Fix | Delete
* the store name is also supported.
[4608] Fix | Delete
*
[4609] Fix | Delete
* @example
[4610] Fix | Delete
* ```js
[4611] Fix | Delete
* import { dispatch } from '@wordpress/data';
[4612] Fix | Delete
* import { store as myCustomStore } from 'my-custom-store';
[4613] Fix | Delete
*
[4614] Fix | Delete
* dispatch( myCustomStore ).setPrice( 'hammer', 9.75 );
[4615] Fix | Delete
* ```
[4616] Fix | Delete
* @return Object containing the action creators.
[4617] Fix | Delete
*/
[4618] Fix | Delete
function dispatch_dispatch(storeNameOrDescriptor) {
[4619] Fix | Delete
return default_registry.dispatch(storeNameOrDescriptor);
[4620] Fix | Delete
}
[4621] Fix | Delete
[4622] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/data/build-module/select.js
[4623] Fix | Delete
/**
[4624] Fix | Delete
* Internal dependencies
[4625] Fix | Delete
*/
[4626] Fix | Delete
[4627] Fix | Delete
[4628] Fix | Delete
[4629] Fix | Delete
/**
[4630] Fix | Delete
* Given a store descriptor, returns an object of the store's selectors.
[4631] Fix | Delete
* The selector functions are been pre-bound to pass the current state automatically.
[4632] Fix | Delete
* As a consumer, you need only pass arguments of the selector, if applicable.
[4633] Fix | Delete
*
[4634] Fix | Delete
*
[4635] Fix | Delete
* @param storeNameOrDescriptor The store descriptor. The legacy calling convention
[4636] Fix | Delete
* of passing the store name is also supported.
[4637] Fix | Delete
*
[4638] Fix | Delete
* @example
[4639] Fix | Delete
* ```js
[4640] Fix | Delete
* import { select } from '@wordpress/data';
[4641] Fix | Delete
* import { store as myCustomStore } from 'my-custom-store';
[4642] Fix | Delete
*
[4643] Fix | Delete
* select( myCustomStore ).getPrice( 'hammer' );
[4644] Fix | Delete
* ```
[4645] Fix | Delete
*
[4646] Fix | Delete
* @return Object containing the store's selectors.
[4647] Fix | Delete
*/
[4648] Fix | Delete
function select_select(storeNameOrDescriptor) {
[4649] Fix | Delete
return default_registry.select(storeNameOrDescriptor);
[4650] Fix | Delete
}
[4651] Fix | Delete
[4652] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/data/build-module/index.js
[4653] Fix | Delete
/**
[4654] Fix | Delete
* Internal dependencies
[4655] Fix | Delete
*/
[4656] Fix | Delete
[4657] Fix | Delete
[4658] Fix | Delete
[4659] Fix | Delete
[4660] Fix | Delete
/** @typedef {import('./types').StoreDescriptor} StoreDescriptor */
[4661] Fix | Delete
[4662] Fix | Delete
[4663] Fix | Delete
[4664] Fix | Delete
[4665] Fix | Delete
[4666] Fix | Delete
[4667] Fix | Delete
[4668] Fix | Delete
[4669] Fix | Delete
[4670] Fix | Delete
[4671] Fix | Delete
[4672] Fix | Delete
[4673] Fix | Delete
[4674] Fix | Delete
[4675] Fix | Delete
[4676] Fix | Delete
[4677] Fix | Delete
/**
[4678] Fix | Delete
* Object of available plugins to use with a registry.
[4679] Fix | Delete
*
[4680] Fix | Delete
* @see [use](#use)
[4681] Fix | Delete
*
[4682] Fix | Delete
* @type {Object}
[4683] Fix | Delete
*/
[4684] Fix | Delete
[4685] Fix | Delete
[4686] Fix | Delete
/**
[4687] Fix | Delete
* The combineReducers helper function turns an object whose values are different
[4688] Fix | Delete
* reducing functions into a single reducing function you can pass to registerReducer.
[4689] Fix | Delete
*
[4690] Fix | Delete
* @type {import('./types').combineReducers}
[4691] Fix | Delete
* @param {Object} reducers An object whose values correspond to different reducing
[4692] Fix | Delete
* functions that need to be combined into one.
[4693] Fix | Delete
*
[4694] Fix | Delete
* @example
[4695] Fix | Delete
* ```js
[4696] Fix | Delete
* import { combineReducers, createReduxStore, register } from '@wordpress/data';
[4697] Fix | Delete
*
[4698] Fix | Delete
* const prices = ( state = {}, action ) => {
[4699] Fix | Delete
* return action.type === 'SET_PRICE' ?
[4700] Fix | Delete
* {
[4701] Fix | Delete
* ...state,
[4702] Fix | Delete
* [ action.item ]: action.price,
[4703] Fix | Delete
* } :
[4704] Fix | Delete
* state;
[4705] Fix | Delete
* };
[4706] Fix | Delete
*
[4707] Fix | Delete
* const discountPercent = ( state = 0, action ) => {
[4708] Fix | Delete
* return action.type === 'START_SALE' ?
[4709] Fix | Delete
* action.discountPercent :
[4710] Fix | Delete
* state;
[4711] Fix | Delete
* };
[4712] Fix | Delete
*
[4713] Fix | Delete
* const store = createReduxStore( 'my-shop', {
[4714] Fix | Delete
* reducer: combineReducers( {
[4715] Fix | Delete
* prices,
[4716] Fix | Delete
* discountPercent,
[4717] Fix | Delete
* } ),
[4718] Fix | Delete
* } );
[4719] Fix | Delete
* register( store );
[4720] Fix | Delete
* ```
[4721] Fix | Delete
*
[4722] Fix | Delete
* @return {Function} A reducer that invokes every reducer inside the reducers
[4723] Fix | Delete
* object, and constructs a state object with the same shape.
[4724] Fix | Delete
*/
[4725] Fix | Delete
const build_module_combineReducers = combine_reducers_combineReducers;
[4726] Fix | Delete
[4727] Fix | Delete
/**
[4728] Fix | Delete
* Given a store descriptor, returns an object containing the store's selectors pre-bound to state
[4729] Fix | Delete
* so that you only need to supply additional arguments, and modified so that they return promises
[4730] Fix | Delete
* that resolve to their eventual values, after any resolvers have ran.
[4731] Fix | Delete
*
[4732] Fix | Delete
* @param {StoreDescriptor|string} storeNameOrDescriptor The store descriptor. The legacy calling
[4733] Fix | Delete
* convention of passing the store name is
[4734] Fix | Delete
* also supported.
[4735] Fix | Delete
*
[4736] Fix | Delete
* @example
[4737] Fix | Delete
* ```js
[4738] Fix | Delete
* import { resolveSelect } from '@wordpress/data';
[4739] Fix | Delete
* import { store as myCustomStore } from 'my-custom-store';
[4740] Fix | Delete
*
[4741] Fix | Delete
* resolveSelect( myCustomStore ).getPrice( 'hammer' ).then(console.log)
[4742] Fix | Delete
* ```
[4743] Fix | Delete
*
[4744] Fix | Delete
* @return {Object} Object containing the store's promise-wrapped selectors.
[4745] Fix | Delete
*/
[4746] Fix | Delete
const build_module_resolveSelect = default_registry.resolveSelect;
[4747] Fix | Delete
[4748] Fix | Delete
/**
[4749] Fix | Delete
* Given a store descriptor, returns an object containing the store's selectors pre-bound to state
[4750] Fix | Delete
* so that you only need to supply additional arguments, and modified so that they throw promises
[4751] Fix | Delete
* in case the selector is not resolved yet.
[4752] Fix | Delete
*
[4753] Fix | Delete
* @param {StoreDescriptor|string} storeNameOrDescriptor The store descriptor. The legacy calling
[4754] Fix | Delete
* convention of passing the store name is
[4755] Fix | Delete
* also supported.
[4756] Fix | Delete
*
[4757] Fix | Delete
* @return {Object} Object containing the store's suspense-wrapped selectors.
[4758] Fix | Delete
*/
[4759] Fix | Delete
const suspendSelect = default_registry.suspendSelect;
[4760] Fix | Delete
[4761] Fix | Delete
/**
[4762] Fix | Delete
* Given a listener function, the function will be called any time the state value
[4763] Fix | Delete
* of one of the registered stores has changed. If you specify the optional
[4764] Fix | Delete
* `storeNameOrDescriptor` parameter, the listener function will be called only
[4765] Fix | Delete
* on updates on that one specific registered store.
[4766] Fix | Delete
*
[4767] Fix | Delete
* This function returns an `unsubscribe` function used to stop the subscription.
[4768] Fix | Delete
*
[4769] Fix | Delete
* @param {Function} listener Callback function.
[4770] Fix | Delete
* @param {string|StoreDescriptor?} storeNameOrDescriptor Optional store name.
[4771] Fix | Delete
*
[4772] Fix | Delete
* @example
[4773] Fix | Delete
* ```js
[4774] Fix | Delete
* import { subscribe } from '@wordpress/data';
[4775] Fix | Delete
*
[4776] Fix | Delete
* const unsubscribe = subscribe( () => {
[4777] Fix | Delete
* // You could use this opportunity to test whether the derived result of a
[4778] Fix | Delete
* // selector has subsequently changed as the result of a state update.
[4779] Fix | Delete
* } );
[4780] Fix | Delete
*
[4781] Fix | Delete
* // Later, if necessary...
[4782] Fix | Delete
* unsubscribe();
[4783] Fix | Delete
* ```
[4784] Fix | Delete
*/
[4785] Fix | Delete
const subscribe = default_registry.subscribe;
[4786] Fix | Delete
[4787] Fix | Delete
/**
[4788] Fix | Delete
* Registers a generic store instance.
[4789] Fix | Delete
*
[4790] Fix | Delete
* @deprecated Use `register( storeDescriptor )` instead.
[4791] Fix | Delete
*
[4792] Fix | Delete
* @param {string} name Store registry name.
[4793] Fix | Delete
* @param {Object} store Store instance (`{ getSelectors, getActions, subscribe }`).
[4794] Fix | Delete
*/
[4795] Fix | Delete
const registerGenericStore = default_registry.registerGenericStore;
[4796] Fix | Delete
[4797] Fix | Delete
/**
[4798] Fix | Delete
* Registers a standard `@wordpress/data` store.
[4799] Fix | Delete
*
[4800] Fix | Delete
* @deprecated Use `register` instead.
[4801] Fix | Delete
*
[4802] Fix | Delete
* @param {string} storeName Unique namespace identifier for the store.
[4803] Fix | Delete
* @param {Object} options Store description (reducer, actions, selectors, resolvers).
[4804] Fix | Delete
*
[4805] Fix | Delete
* @return {Object} Registered store object.
[4806] Fix | Delete
*/
[4807] Fix | Delete
const registerStore = default_registry.registerStore;
[4808] Fix | Delete
[4809] Fix | Delete
/**
[4810] Fix | Delete
* Extends a registry to inherit functionality provided by a given plugin. A
[4811] Fix | Delete
* plugin is an object with properties aligning to that of a registry, merged
[4812] Fix | Delete
* to extend the default registry behavior.
[4813] Fix | Delete
*
[4814] Fix | Delete
* @param {Object} plugin Plugin object.
[4815] Fix | Delete
*/
[4816] Fix | Delete
const use = default_registry.use;
[4817] Fix | Delete
[4818] Fix | Delete
/**
[4819] Fix | Delete
* Registers a standard `@wordpress/data` store descriptor.
[4820] Fix | Delete
*
[4821] Fix | Delete
* @example
[4822] Fix | Delete
* ```js
[4823] Fix | Delete
* import { createReduxStore, register } from '@wordpress/data';
[4824] Fix | Delete
*
[4825] Fix | Delete
* const store = createReduxStore( 'demo', {
[4826] Fix | Delete
* reducer: ( state = 'OK' ) => state,
[4827] Fix | Delete
* selectors: {
[4828] Fix | Delete
* getValue: ( state ) => state,
[4829] Fix | Delete
* },
[4830] Fix | Delete
* } );
[4831] Fix | Delete
* register( store );
[4832] Fix | Delete
* ```
[4833] Fix | Delete
*
[4834] Fix | Delete
* @param {StoreDescriptor} store Store descriptor.
[4835] Fix | Delete
*/
[4836] Fix | Delete
const register = default_registry.register;
[4837] Fix | Delete
[4838] Fix | Delete
})();
[4839] Fix | Delete
[4840] Fix | Delete
(window.wp = window.wp || {}).data = __webpack_exports__;
[4841] Fix | Delete
/******/ })()
[4842] Fix | Delete
;
[4843] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function