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
/home/sportsfe.../httpdocs/wp-inclu.../js/dist
File: customize-widgets.js
/******/ (() => { // webpackBootstrap
[0] Fix | Delete
/******/ "use strict";
[1] Fix | Delete
/******/ var __webpack_modules__ = ({
[2] Fix | Delete
[3] Fix | Delete
/***/ 7734:
[4] Fix | Delete
/***/ ((module) => {
[5] Fix | Delete
[6] Fix | Delete
[7] Fix | Delete
[8] Fix | Delete
// do not edit .js files directly - edit src/index.jst
[9] Fix | Delete
[10] Fix | Delete
[11] Fix | Delete
var envHasBigInt64Array = typeof BigInt64Array !== 'undefined';
[12] Fix | Delete
[13] Fix | Delete
[14] Fix | Delete
module.exports = function equal(a, b) {
[15] Fix | Delete
if (a === b) return true;
[16] Fix | Delete
[17] Fix | Delete
if (a && b && typeof a == 'object' && typeof b == 'object') {
[18] Fix | Delete
if (a.constructor !== b.constructor) return false;
[19] Fix | Delete
[20] Fix | Delete
var length, i, keys;
[21] Fix | Delete
if (Array.isArray(a)) {
[22] Fix | Delete
length = a.length;
[23] Fix | Delete
if (length != b.length) return false;
[24] Fix | Delete
for (i = length; i-- !== 0;)
[25] Fix | Delete
if (!equal(a[i], b[i])) return false;
[26] Fix | Delete
return true;
[27] Fix | Delete
}
[28] Fix | Delete
[29] Fix | Delete
[30] Fix | Delete
if ((a instanceof Map) && (b instanceof Map)) {
[31] Fix | Delete
if (a.size !== b.size) return false;
[32] Fix | Delete
for (i of a.entries())
[33] Fix | Delete
if (!b.has(i[0])) return false;
[34] Fix | Delete
for (i of a.entries())
[35] Fix | Delete
if (!equal(i[1], b.get(i[0]))) return false;
[36] Fix | Delete
return true;
[37] Fix | Delete
}
[38] Fix | Delete
[39] Fix | Delete
if ((a instanceof Set) && (b instanceof Set)) {
[40] Fix | Delete
if (a.size !== b.size) return false;
[41] Fix | Delete
for (i of a.entries())
[42] Fix | Delete
if (!b.has(i[0])) return false;
[43] Fix | Delete
return true;
[44] Fix | Delete
}
[45] Fix | Delete
[46] Fix | Delete
if (ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
[47] Fix | Delete
length = a.length;
[48] Fix | Delete
if (length != b.length) return false;
[49] Fix | Delete
for (i = length; i-- !== 0;)
[50] Fix | Delete
if (a[i] !== b[i]) return false;
[51] Fix | Delete
return true;
[52] Fix | Delete
}
[53] Fix | Delete
[54] Fix | Delete
[55] Fix | Delete
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
[56] Fix | Delete
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
[57] Fix | Delete
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
[58] Fix | Delete
[59] Fix | Delete
keys = Object.keys(a);
[60] Fix | Delete
length = keys.length;
[61] Fix | Delete
if (length !== Object.keys(b).length) return false;
[62] Fix | Delete
[63] Fix | Delete
for (i = length; i-- !== 0;)
[64] Fix | Delete
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
[65] Fix | Delete
[66] Fix | Delete
for (i = length; i-- !== 0;) {
[67] Fix | Delete
var key = keys[i];
[68] Fix | Delete
[69] Fix | Delete
if (!equal(a[key], b[key])) return false;
[70] Fix | Delete
}
[71] Fix | Delete
[72] Fix | Delete
return true;
[73] Fix | Delete
}
[74] Fix | Delete
[75] Fix | Delete
// true if both NaN, false otherwise
[76] Fix | Delete
return a!==a && b!==b;
[77] Fix | Delete
};
[78] Fix | Delete
[79] Fix | Delete
[80] Fix | Delete
/***/ })
[81] Fix | Delete
[82] Fix | Delete
/******/ });
[83] Fix | Delete
/************************************************************************/
[84] Fix | Delete
/******/ // The module cache
[85] Fix | Delete
/******/ var __webpack_module_cache__ = {};
[86] Fix | Delete
/******/
[87] Fix | Delete
/******/ // The require function
[88] Fix | Delete
/******/ function __webpack_require__(moduleId) {
[89] Fix | Delete
/******/ // Check if module is in cache
[90] Fix | Delete
/******/ var cachedModule = __webpack_module_cache__[moduleId];
[91] Fix | Delete
/******/ if (cachedModule !== undefined) {
[92] Fix | Delete
/******/ return cachedModule.exports;
[93] Fix | Delete
/******/ }
[94] Fix | Delete
/******/ // Create a new module (and put it into the cache)
[95] Fix | Delete
/******/ var module = __webpack_module_cache__[moduleId] = {
[96] Fix | Delete
/******/ // no module.id needed
[97] Fix | Delete
/******/ // no module.loaded needed
[98] Fix | Delete
/******/ exports: {}
[99] Fix | Delete
/******/ };
[100] Fix | Delete
/******/
[101] Fix | Delete
/******/ // Execute the module function
[102] Fix | Delete
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
[103] Fix | Delete
/******/
[104] Fix | Delete
/******/ // Return the exports of the module
[105] Fix | Delete
/******/ return module.exports;
[106] Fix | Delete
/******/ }
[107] Fix | Delete
/******/
[108] Fix | Delete
/************************************************************************/
[109] Fix | Delete
/******/ /* webpack/runtime/compat get default export */
[110] Fix | Delete
/******/ (() => {
[111] Fix | Delete
/******/ // getDefaultExport function for compatibility with non-harmony modules
[112] Fix | Delete
/******/ __webpack_require__.n = (module) => {
[113] Fix | Delete
/******/ var getter = module && module.__esModule ?
[114] Fix | Delete
/******/ () => (module['default']) :
[115] Fix | Delete
/******/ () => (module);
[116] Fix | Delete
/******/ __webpack_require__.d(getter, { a: getter });
[117] Fix | Delete
/******/ return getter;
[118] Fix | Delete
/******/ };
[119] Fix | Delete
/******/ })();
[120] Fix | Delete
/******/
[121] Fix | Delete
/******/ /* webpack/runtime/define property getters */
[122] Fix | Delete
/******/ (() => {
[123] Fix | Delete
/******/ // define getter functions for harmony exports
[124] Fix | Delete
/******/ __webpack_require__.d = (exports, definition) => {
[125] Fix | Delete
/******/ for(var key in definition) {
[126] Fix | Delete
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
[127] Fix | Delete
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
[128] Fix | Delete
/******/ }
[129] Fix | Delete
/******/ }
[130] Fix | Delete
/******/ };
[131] Fix | Delete
/******/ })();
[132] Fix | Delete
/******/
[133] Fix | Delete
/******/ /* webpack/runtime/hasOwnProperty shorthand */
[134] Fix | Delete
/******/ (() => {
[135] Fix | Delete
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
[136] Fix | Delete
/******/ })();
[137] Fix | Delete
/******/
[138] Fix | Delete
/******/ /* webpack/runtime/make namespace object */
[139] Fix | Delete
/******/ (() => {
[140] Fix | Delete
/******/ // define __esModule on exports
[141] Fix | Delete
/******/ __webpack_require__.r = (exports) => {
[142] Fix | Delete
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
[143] Fix | Delete
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
[144] Fix | Delete
/******/ }
[145] Fix | Delete
/******/ Object.defineProperty(exports, '__esModule', { value: true });
[146] Fix | Delete
/******/ };
[147] Fix | Delete
/******/ })();
[148] Fix | Delete
/******/
[149] Fix | Delete
/************************************************************************/
[150] Fix | Delete
var __webpack_exports__ = {};
[151] Fix | Delete
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
[152] Fix | Delete
(() => {
[153] Fix | Delete
// ESM COMPAT FLAG
[154] Fix | Delete
__webpack_require__.r(__webpack_exports__);
[155] Fix | Delete
[156] Fix | Delete
// EXPORTS
[157] Fix | Delete
__webpack_require__.d(__webpack_exports__, {
[158] Fix | Delete
initialize: () => (/* binding */ initialize),
[159] Fix | Delete
store: () => (/* reexport */ store)
[160] Fix | Delete
});
[161] Fix | Delete
[162] Fix | Delete
// NAMESPACE OBJECT: ./node_modules/@wordpress/customize-widgets/build-module/store/selectors.js
[163] Fix | Delete
var selectors_namespaceObject = {};
[164] Fix | Delete
__webpack_require__.r(selectors_namespaceObject);
[165] Fix | Delete
__webpack_require__.d(selectors_namespaceObject, {
[166] Fix | Delete
__experimentalGetInsertionPoint: () => (__experimentalGetInsertionPoint),
[167] Fix | Delete
isInserterOpened: () => (isInserterOpened)
[168] Fix | Delete
});
[169] Fix | Delete
[170] Fix | Delete
// NAMESPACE OBJECT: ./node_modules/@wordpress/customize-widgets/build-module/store/actions.js
[171] Fix | Delete
var actions_namespaceObject = {};
[172] Fix | Delete
__webpack_require__.r(actions_namespaceObject);
[173] Fix | Delete
__webpack_require__.d(actions_namespaceObject, {
[174] Fix | Delete
setIsInserterOpened: () => (setIsInserterOpened)
[175] Fix | Delete
});
[176] Fix | Delete
[177] Fix | Delete
;// CONCATENATED MODULE: external ["wp","element"]
[178] Fix | Delete
const external_wp_element_namespaceObject = window["wp"]["element"];
[179] Fix | Delete
;// CONCATENATED MODULE: external ["wp","blockLibrary"]
[180] Fix | Delete
const external_wp_blockLibrary_namespaceObject = window["wp"]["blockLibrary"];
[181] Fix | Delete
;// CONCATENATED MODULE: external ["wp","widgets"]
[182] Fix | Delete
const external_wp_widgets_namespaceObject = window["wp"]["widgets"];
[183] Fix | Delete
;// CONCATENATED MODULE: external ["wp","blocks"]
[184] Fix | Delete
const external_wp_blocks_namespaceObject = window["wp"]["blocks"];
[185] Fix | Delete
;// CONCATENATED MODULE: external ["wp","data"]
[186] Fix | Delete
const external_wp_data_namespaceObject = window["wp"]["data"];
[187] Fix | Delete
;// CONCATENATED MODULE: external ["wp","preferences"]
[188] Fix | Delete
const external_wp_preferences_namespaceObject = window["wp"]["preferences"];
[189] Fix | Delete
;// CONCATENATED MODULE: external ["wp","components"]
[190] Fix | Delete
const external_wp_components_namespaceObject = window["wp"]["components"];
[191] Fix | Delete
;// CONCATENATED MODULE: external ["wp","i18n"]
[192] Fix | Delete
const external_wp_i18n_namespaceObject = window["wp"]["i18n"];
[193] Fix | Delete
;// CONCATENATED MODULE: external ["wp","blockEditor"]
[194] Fix | Delete
const external_wp_blockEditor_namespaceObject = window["wp"]["blockEditor"];
[195] Fix | Delete
;// CONCATENATED MODULE: external ["wp","compose"]
[196] Fix | Delete
const external_wp_compose_namespaceObject = window["wp"]["compose"];
[197] Fix | Delete
;// CONCATENATED MODULE: external ["wp","hooks"]
[198] Fix | Delete
const external_wp_hooks_namespaceObject = window["wp"]["hooks"];
[199] Fix | Delete
;// CONCATENATED MODULE: external "ReactJSXRuntime"
[200] Fix | Delete
const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
[201] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/components/error-boundary/index.js
[202] Fix | Delete
/**
[203] Fix | Delete
* WordPress dependencies
[204] Fix | Delete
*/
[205] Fix | Delete
[206] Fix | Delete
[207] Fix | Delete
[208] Fix | Delete
[209] Fix | Delete
[210] Fix | Delete
[211] Fix | Delete
[212] Fix | Delete
function CopyButton({
[213] Fix | Delete
text,
[214] Fix | Delete
children
[215] Fix | Delete
}) {
[216] Fix | Delete
const ref = (0,external_wp_compose_namespaceObject.useCopyToClipboard)(text);
[217] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
[218] Fix | Delete
variant: "secondary",
[219] Fix | Delete
ref: ref,
[220] Fix | Delete
children: children
[221] Fix | Delete
});
[222] Fix | Delete
}
[223] Fix | Delete
class ErrorBoundary extends external_wp_element_namespaceObject.Component {
[224] Fix | Delete
constructor() {
[225] Fix | Delete
super(...arguments);
[226] Fix | Delete
this.state = {
[227] Fix | Delete
error: null
[228] Fix | Delete
};
[229] Fix | Delete
}
[230] Fix | Delete
componentDidCatch(error) {
[231] Fix | Delete
this.setState({
[232] Fix | Delete
error
[233] Fix | Delete
});
[234] Fix | Delete
(0,external_wp_hooks_namespaceObject.doAction)('editor.ErrorBoundary.errorLogged', error);
[235] Fix | Delete
}
[236] Fix | Delete
render() {
[237] Fix | Delete
const {
[238] Fix | Delete
error
[239] Fix | Delete
} = this.state;
[240] Fix | Delete
if (!error) {
[241] Fix | Delete
return this.props.children;
[242] Fix | Delete
}
[243] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.Warning, {
[244] Fix | Delete
className: "customize-widgets-error-boundary",
[245] Fix | Delete
actions: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CopyButton, {
[246] Fix | Delete
text: error.stack,
[247] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Copy Error')
[248] Fix | Delete
}, "copy-error")],
[249] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('The editor has encountered an unexpected error.')
[250] Fix | Delete
});
[251] Fix | Delete
}
[252] Fix | Delete
}
[253] Fix | Delete
[254] Fix | Delete
;// CONCATENATED MODULE: external ["wp","coreData"]
[255] Fix | Delete
const external_wp_coreData_namespaceObject = window["wp"]["coreData"];
[256] Fix | Delete
;// CONCATENATED MODULE: external ["wp","mediaUtils"]
[257] Fix | Delete
const external_wp_mediaUtils_namespaceObject = window["wp"]["mediaUtils"];
[258] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/components/block-inspector-button/index.js
[259] Fix | Delete
/**
[260] Fix | Delete
* WordPress dependencies
[261] Fix | Delete
*/
[262] Fix | Delete
[263] Fix | Delete
[264] Fix | Delete
[265] Fix | Delete
[266] Fix | Delete
[267] Fix | Delete
[268] Fix | Delete
function BlockInspectorButton({
[269] Fix | Delete
inspector,
[270] Fix | Delete
closeMenu,
[271] Fix | Delete
...props
[272] Fix | Delete
}) {
[273] Fix | Delete
const selectedBlockClientId = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_blockEditor_namespaceObject.store).getSelectedBlockClientId(), []);
[274] Fix | Delete
const selectedBlock = (0,external_wp_element_namespaceObject.useMemo)(() => document.getElementById(`block-${selectedBlockClientId}`), [selectedBlockClientId]);
[275] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
[276] Fix | Delete
onClick: () => {
[277] Fix | Delete
// Open the inspector.
[278] Fix | Delete
inspector.open({
[279] Fix | Delete
returnFocusWhenClose: selectedBlock
[280] Fix | Delete
});
[281] Fix | Delete
// Then close the dropdown menu.
[282] Fix | Delete
closeMenu();
[283] Fix | Delete
},
[284] Fix | Delete
...props,
[285] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Show more settings')
[286] Fix | Delete
});
[287] Fix | Delete
}
[288] Fix | Delete
/* harmony default export */ const block_inspector_button = (BlockInspectorButton);
[289] Fix | Delete
[290] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/clsx/dist/clsx.mjs
[291] Fix | Delete
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f)}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}/* harmony default export */ const dist_clsx = (clsx);
[292] Fix | Delete
;// CONCATENATED MODULE: external ["wp","keycodes"]
[293] Fix | Delete
const external_wp_keycodes_namespaceObject = window["wp"]["keycodes"];
[294] Fix | Delete
;// CONCATENATED MODULE: external ["wp","primitives"]
[295] Fix | Delete
const external_wp_primitives_namespaceObject = window["wp"]["primitives"];
[296] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/undo.js
[297] Fix | Delete
/**
[298] Fix | Delete
* WordPress dependencies
[299] Fix | Delete
*/
[300] Fix | Delete
[301] Fix | Delete
[302] Fix | Delete
const undo = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[303] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[304] Fix | Delete
viewBox: "0 0 24 24",
[305] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[306] Fix | Delete
d: "M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"
[307] Fix | Delete
})
[308] Fix | Delete
});
[309] Fix | Delete
/* harmony default export */ const library_undo = (undo);
[310] Fix | Delete
[311] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/redo.js
[312] Fix | Delete
/**
[313] Fix | Delete
* WordPress dependencies
[314] Fix | Delete
*/
[315] Fix | Delete
[316] Fix | Delete
[317] Fix | Delete
const redo = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[318] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[319] Fix | Delete
viewBox: "0 0 24 24",
[320] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[321] Fix | Delete
d: "M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"
[322] Fix | Delete
})
[323] Fix | Delete
});
[324] Fix | Delete
/* harmony default export */ const library_redo = (redo);
[325] Fix | Delete
[326] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/plus.js
[327] Fix | Delete
/**
[328] Fix | Delete
* WordPress dependencies
[329] Fix | Delete
*/
[330] Fix | Delete
[331] Fix | Delete
[332] Fix | Delete
const plus = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[333] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[334] Fix | Delete
viewBox: "0 0 24 24",
[335] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[336] Fix | Delete
d: "M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"
[337] Fix | Delete
})
[338] Fix | Delete
});
[339] Fix | Delete
/* harmony default export */ const library_plus = (plus);
[340] Fix | Delete
[341] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/close-small.js
[342] Fix | Delete
/**
[343] Fix | Delete
* WordPress dependencies
[344] Fix | Delete
*/
[345] Fix | Delete
[346] Fix | Delete
[347] Fix | Delete
const closeSmall = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[348] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[349] Fix | Delete
viewBox: "0 0 24 24",
[350] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[351] Fix | Delete
d: "M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"
[352] Fix | Delete
})
[353] Fix | Delete
});
[354] Fix | Delete
/* harmony default export */ const close_small = (closeSmall);
[355] Fix | Delete
[356] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/store/reducer.js
[357] Fix | Delete
/**
[358] Fix | Delete
* WordPress dependencies
[359] Fix | Delete
*/
[360] Fix | Delete
[361] Fix | Delete
[362] Fix | Delete
/**
[363] Fix | Delete
* Reducer tracking whether the inserter is open.
[364] Fix | Delete
*
[365] Fix | Delete
* @param {boolean|Object} state
[366] Fix | Delete
* @param {Object} action
[367] Fix | Delete
*/
[368] Fix | Delete
function blockInserterPanel(state = false, action) {
[369] Fix | Delete
switch (action.type) {
[370] Fix | Delete
case 'SET_IS_INSERTER_OPENED':
[371] Fix | Delete
return action.value;
[372] Fix | Delete
}
[373] Fix | Delete
return state;
[374] Fix | Delete
}
[375] Fix | Delete
/* harmony default export */ const reducer = ((0,external_wp_data_namespaceObject.combineReducers)({
[376] Fix | Delete
blockInserterPanel
[377] Fix | Delete
}));
[378] Fix | Delete
[379] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/store/selectors.js
[380] Fix | Delete
const EMPTY_INSERTION_POINT = {
[381] Fix | Delete
rootClientId: undefined,
[382] Fix | Delete
insertionIndex: undefined
[383] Fix | Delete
};
[384] Fix | Delete
[385] Fix | Delete
/**
[386] Fix | Delete
* Returns true if the inserter is opened.
[387] Fix | Delete
*
[388] Fix | Delete
* @param {Object} state Global application state.
[389] Fix | Delete
*
[390] Fix | Delete
* @example
[391] Fix | Delete
* ```js
[392] Fix | Delete
* import { store as customizeWidgetsStore } from '@wordpress/customize-widgets';
[393] Fix | Delete
* import { __ } from '@wordpress/i18n';
[394] Fix | Delete
* import { useSelect } from '@wordpress/data';
[395] Fix | Delete
*
[396] Fix | Delete
* const ExampleComponent = () => {
[397] Fix | Delete
* const { isInserterOpened } = useSelect(
[398] Fix | Delete
* ( select ) => select( customizeWidgetsStore ),
[399] Fix | Delete
* []
[400] Fix | Delete
* );
[401] Fix | Delete
*
[402] Fix | Delete
* return isInserterOpened()
[403] Fix | Delete
* ? __( 'Inserter is open' )
[404] Fix | Delete
* : __( 'Inserter is closed.' );
[405] Fix | Delete
* };
[406] Fix | Delete
* ```
[407] Fix | Delete
*
[408] Fix | Delete
* @return {boolean} Whether the inserter is opened.
[409] Fix | Delete
*/
[410] Fix | Delete
function isInserterOpened(state) {
[411] Fix | Delete
return !!state.blockInserterPanel;
[412] Fix | Delete
}
[413] Fix | Delete
[414] Fix | Delete
/**
[415] Fix | Delete
* Get the insertion point for the inserter.
[416] Fix | Delete
*
[417] Fix | Delete
* @param {Object} state Global application state.
[418] Fix | Delete
*
[419] Fix | Delete
* @return {Object} The root client ID and index to insert at.
[420] Fix | Delete
*/
[421] Fix | Delete
function __experimentalGetInsertionPoint(state) {
[422] Fix | Delete
if (typeof state.blockInserterPanel === 'boolean') {
[423] Fix | Delete
return EMPTY_INSERTION_POINT;
[424] Fix | Delete
}
[425] Fix | Delete
return state.blockInserterPanel;
[426] Fix | Delete
}
[427] Fix | Delete
[428] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/store/actions.js
[429] Fix | Delete
/**
[430] Fix | Delete
* Returns an action object used to open/close the inserter.
[431] Fix | Delete
*
[432] Fix | Delete
* @param {boolean|Object} value Whether the inserter should be
[433] Fix | Delete
* opened (true) or closed (false).
[434] Fix | Delete
* To specify an insertion point,
[435] Fix | Delete
* use an object.
[436] Fix | Delete
* @param {string} value.rootClientId The root client ID to insert at.
[437] Fix | Delete
* @param {number} value.insertionIndex The index to insert at.
[438] Fix | Delete
*
[439] Fix | Delete
* @example
[440] Fix | Delete
* ```js
[441] Fix | Delete
* import { useState } from 'react';
[442] Fix | Delete
* import { store as customizeWidgetsStore } from '@wordpress/customize-widgets';
[443] Fix | Delete
* import { __ } from '@wordpress/i18n';
[444] Fix | Delete
* import { useDispatch } from '@wordpress/data';
[445] Fix | Delete
* import { Button } from '@wordpress/components';
[446] Fix | Delete
*
[447] Fix | Delete
* const ExampleComponent = () => {
[448] Fix | Delete
* const { setIsInserterOpened } = useDispatch( customizeWidgetsStore );
[449] Fix | Delete
* const [ isOpen, setIsOpen ] = useState( false );
[450] Fix | Delete
*
[451] Fix | Delete
* return (
[452] Fix | Delete
* <Button
[453] Fix | Delete
* onClick={ () => {
[454] Fix | Delete
* setIsInserterOpened( ! isOpen );
[455] Fix | Delete
* setIsOpen( ! isOpen );
[456] Fix | Delete
* } }
[457] Fix | Delete
* >
[458] Fix | Delete
* { __( 'Open/close inserter' ) }
[459] Fix | Delete
* </Button>
[460] Fix | Delete
* );
[461] Fix | Delete
* };
[462] Fix | Delete
* ```
[463] Fix | Delete
*
[464] Fix | Delete
* @return {Object} Action object.
[465] Fix | Delete
*/
[466] Fix | Delete
function setIsInserterOpened(value) {
[467] Fix | Delete
return {
[468] Fix | Delete
type: 'SET_IS_INSERTER_OPENED',
[469] Fix | Delete
value
[470] Fix | Delete
};
[471] Fix | Delete
}
[472] Fix | Delete
[473] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/store/constants.js
[474] Fix | Delete
/**
[475] Fix | Delete
* Module Constants
[476] Fix | Delete
*/
[477] Fix | Delete
const STORE_NAME = 'core/customize-widgets';
[478] Fix | Delete
[479] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/store/index.js
[480] Fix | Delete
/**
[481] Fix | Delete
* WordPress dependencies
[482] Fix | Delete
*/
[483] Fix | Delete
[484] Fix | Delete
[485] Fix | Delete
/**
[486] Fix | Delete
* Internal dependencies
[487] Fix | Delete
*/
[488] Fix | Delete
[489] Fix | Delete
[490] Fix | Delete
[491] Fix | Delete
[492] Fix | Delete
[493] Fix | Delete
/**
[494] Fix | Delete
* Block editor data store configuration.
[495] Fix | Delete
*
[496] Fix | Delete
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#registering-a-store
[497] Fix | Delete
*
[498] Fix | Delete
* @type {Object}
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function