Edit File by line
/home/zeestwma/richards.../wp-inclu.../js/dist
File: server-side-render.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
/************************************************************************/
[139] Fix | Delete
var __webpack_exports__ = {};
[140] Fix | Delete
[141] Fix | Delete
// EXPORTS
[142] Fix | Delete
__webpack_require__.d(__webpack_exports__, {
[143] Fix | Delete
"default": () => (/* binding */ build_module)
[144] Fix | Delete
});
[145] Fix | Delete
[146] Fix | Delete
;// external ["wp","element"]
[147] Fix | Delete
const external_wp_element_namespaceObject = window["wp"]["element"];
[148] Fix | Delete
;// external ["wp","data"]
[149] Fix | Delete
const external_wp_data_namespaceObject = window["wp"]["data"];
[150] Fix | Delete
// EXTERNAL MODULE: ./node_modules/fast-deep-equal/es6/index.js
[151] Fix | Delete
var es6 = __webpack_require__(7734);
[152] Fix | Delete
var es6_default = /*#__PURE__*/__webpack_require__.n(es6);
[153] Fix | Delete
;// external ["wp","compose"]
[154] Fix | Delete
const external_wp_compose_namespaceObject = window["wp"]["compose"];
[155] Fix | Delete
;// external ["wp","i18n"]
[156] Fix | Delete
const external_wp_i18n_namespaceObject = window["wp"]["i18n"];
[157] Fix | Delete
;// external ["wp","apiFetch"]
[158] Fix | Delete
const external_wp_apiFetch_namespaceObject = window["wp"]["apiFetch"];
[159] Fix | Delete
var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_namespaceObject);
[160] Fix | Delete
;// external ["wp","url"]
[161] Fix | Delete
const external_wp_url_namespaceObject = window["wp"]["url"];
[162] Fix | Delete
;// external ["wp","components"]
[163] Fix | Delete
const external_wp_components_namespaceObject = window["wp"]["components"];
[164] Fix | Delete
;// external ["wp","blocks"]
[165] Fix | Delete
const external_wp_blocks_namespaceObject = window["wp"]["blocks"];
[166] Fix | Delete
;// external "ReactJSXRuntime"
[167] Fix | Delete
const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
[168] Fix | Delete
;// ./node_modules/@wordpress/server-side-render/build-module/server-side-render.js
[169] Fix | Delete
/**
[170] Fix | Delete
* External dependencies
[171] Fix | Delete
*/
[172] Fix | Delete
[173] Fix | Delete
[174] Fix | Delete
/**
[175] Fix | Delete
* WordPress dependencies
[176] Fix | Delete
*/
[177] Fix | Delete
[178] Fix | Delete
[179] Fix | Delete
[180] Fix | Delete
[181] Fix | Delete
[182] Fix | Delete
[183] Fix | Delete
[184] Fix | Delete
[185] Fix | Delete
const EMPTY_OBJECT = {};
[186] Fix | Delete
function rendererPath(block, attributes = null, urlQueryArgs = {}) {
[187] Fix | Delete
return (0,external_wp_url_namespaceObject.addQueryArgs)(`/wp/v2/block-renderer/${block}`, {
[188] Fix | Delete
context: 'edit',
[189] Fix | Delete
...(null !== attributes ? {
[190] Fix | Delete
attributes
[191] Fix | Delete
} : {}),
[192] Fix | Delete
...urlQueryArgs
[193] Fix | Delete
});
[194] Fix | Delete
}
[195] Fix | Delete
function removeBlockSupportAttributes(attributes) {
[196] Fix | Delete
const {
[197] Fix | Delete
backgroundColor,
[198] Fix | Delete
borderColor,
[199] Fix | Delete
fontFamily,
[200] Fix | Delete
fontSize,
[201] Fix | Delete
gradient,
[202] Fix | Delete
textColor,
[203] Fix | Delete
className,
[204] Fix | Delete
...restAttributes
[205] Fix | Delete
} = attributes;
[206] Fix | Delete
const {
[207] Fix | Delete
border,
[208] Fix | Delete
color,
[209] Fix | Delete
elements,
[210] Fix | Delete
spacing,
[211] Fix | Delete
typography,
[212] Fix | Delete
...restStyles
[213] Fix | Delete
} = attributes?.style || EMPTY_OBJECT;
[214] Fix | Delete
return {
[215] Fix | Delete
...restAttributes,
[216] Fix | Delete
style: restStyles
[217] Fix | Delete
};
[218] Fix | Delete
}
[219] Fix | Delete
function DefaultEmptyResponsePlaceholder({
[220] Fix | Delete
className
[221] Fix | Delete
}) {
[222] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Placeholder, {
[223] Fix | Delete
className: className,
[224] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Block rendered as empty.')
[225] Fix | Delete
});
[226] Fix | Delete
}
[227] Fix | Delete
function DefaultErrorResponsePlaceholder({
[228] Fix | Delete
response,
[229] Fix | Delete
className
[230] Fix | Delete
}) {
[231] Fix | Delete
const errorMessage = (0,external_wp_i18n_namespaceObject.sprintf)(
[232] Fix | Delete
// translators: %s: error message describing the problem
[233] Fix | Delete
(0,external_wp_i18n_namespaceObject.__)('Error loading block: %s'), response.errorMsg);
[234] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Placeholder, {
[235] Fix | Delete
className: className,
[236] Fix | Delete
children: errorMessage
[237] Fix | Delete
});
[238] Fix | Delete
}
[239] Fix | Delete
function DefaultLoadingResponsePlaceholder({
[240] Fix | Delete
children,
[241] Fix | Delete
showLoader
[242] Fix | Delete
}) {
[243] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
[244] Fix | Delete
style: {
[245] Fix | Delete
position: 'relative'
[246] Fix | Delete
},
[247] Fix | Delete
children: [showLoader && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
[248] Fix | Delete
style: {
[249] Fix | Delete
position: 'absolute',
[250] Fix | Delete
top: '50%',
[251] Fix | Delete
left: '50%',
[252] Fix | Delete
marginTop: '-9px',
[253] Fix | Delete
marginLeft: '-9px'
[254] Fix | Delete
},
[255] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {})
[256] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
[257] Fix | Delete
style: {
[258] Fix | Delete
opacity: showLoader ? '0.3' : 1
[259] Fix | Delete
},
[260] Fix | Delete
children: children
[261] Fix | Delete
})]
[262] Fix | Delete
});
[263] Fix | Delete
}
[264] Fix | Delete
function ServerSideRender(props) {
[265] Fix | Delete
const {
[266] Fix | Delete
attributes,
[267] Fix | Delete
block,
[268] Fix | Delete
className,
[269] Fix | Delete
httpMethod = 'GET',
[270] Fix | Delete
urlQueryArgs,
[271] Fix | Delete
skipBlockSupportAttributes = false,
[272] Fix | Delete
EmptyResponsePlaceholder = DefaultEmptyResponsePlaceholder,
[273] Fix | Delete
ErrorResponsePlaceholder = DefaultErrorResponsePlaceholder,
[274] Fix | Delete
LoadingResponsePlaceholder = DefaultLoadingResponsePlaceholder
[275] Fix | Delete
} = props;
[276] Fix | Delete
const isMountedRef = (0,external_wp_element_namespaceObject.useRef)(false);
[277] Fix | Delete
const [showLoader, setShowLoader] = (0,external_wp_element_namespaceObject.useState)(false);
[278] Fix | Delete
const fetchRequestRef = (0,external_wp_element_namespaceObject.useRef)();
[279] Fix | Delete
const [response, setResponse] = (0,external_wp_element_namespaceObject.useState)(null);
[280] Fix | Delete
const prevProps = (0,external_wp_compose_namespaceObject.usePrevious)(props);
[281] Fix | Delete
const [isLoading, setIsLoading] = (0,external_wp_element_namespaceObject.useState)(false);
[282] Fix | Delete
function fetchData() {
[283] Fix | Delete
var _sanitizedAttributes, _sanitizedAttributes2;
[284] Fix | Delete
if (!isMountedRef.current) {
[285] Fix | Delete
return;
[286] Fix | Delete
}
[287] Fix | Delete
setIsLoading(true);
[288] Fix | Delete
[289] Fix | Delete
// Schedule showing the Spinner after 1 second.
[290] Fix | Delete
const timeout = setTimeout(() => {
[291] Fix | Delete
setShowLoader(true);
[292] Fix | Delete
}, 1000);
[293] Fix | Delete
let sanitizedAttributes = attributes && (0,external_wp_blocks_namespaceObject.__experimentalSanitizeBlockAttributes)(block, attributes);
[294] Fix | Delete
if (skipBlockSupportAttributes) {
[295] Fix | Delete
sanitizedAttributes = removeBlockSupportAttributes(sanitizedAttributes);
[296] Fix | Delete
}
[297] Fix | Delete
[298] Fix | Delete
// If httpMethod is 'POST', send the attributes in the request body instead of the URL.
[299] Fix | Delete
// This allows sending a larger attributes object than in a GET request, where the attributes are in the URL.
[300] Fix | Delete
const isPostRequest = 'POST' === httpMethod;
[301] Fix | Delete
const urlAttributes = isPostRequest ? null : (_sanitizedAttributes = sanitizedAttributes) !== null && _sanitizedAttributes !== void 0 ? _sanitizedAttributes : null;
[302] Fix | Delete
const path = rendererPath(block, urlAttributes, urlQueryArgs);
[303] Fix | Delete
const data = isPostRequest ? {
[304] Fix | Delete
attributes: (_sanitizedAttributes2 = sanitizedAttributes) !== null && _sanitizedAttributes2 !== void 0 ? _sanitizedAttributes2 : null
[305] Fix | Delete
} : null;
[306] Fix | Delete
[307] Fix | Delete
// Store the latest fetch request so that when we process it, we can
[308] Fix | Delete
// check if it is the current request, to avoid race conditions on slow networks.
[309] Fix | Delete
const fetchRequest = fetchRequestRef.current = external_wp_apiFetch_default()({
[310] Fix | Delete
path,
[311] Fix | Delete
data,
[312] Fix | Delete
method: isPostRequest ? 'POST' : 'GET'
[313] Fix | Delete
}).then(fetchResponse => {
[314] Fix | Delete
if (isMountedRef.current && fetchRequest === fetchRequestRef.current && fetchResponse) {
[315] Fix | Delete
setResponse(fetchResponse.rendered);
[316] Fix | Delete
}
[317] Fix | Delete
}).catch(error => {
[318] Fix | Delete
if (isMountedRef.current && fetchRequest === fetchRequestRef.current) {
[319] Fix | Delete
setResponse({
[320] Fix | Delete
error: true,
[321] Fix | Delete
errorMsg: error.message
[322] Fix | Delete
});
[323] Fix | Delete
}
[324] Fix | Delete
}).finally(() => {
[325] Fix | Delete
if (isMountedRef.current && fetchRequest === fetchRequestRef.current) {
[326] Fix | Delete
setIsLoading(false);
[327] Fix | Delete
// Cancel the timeout to show the Spinner.
[328] Fix | Delete
setShowLoader(false);
[329] Fix | Delete
clearTimeout(timeout);
[330] Fix | Delete
}
[331] Fix | Delete
});
[332] Fix | Delete
return fetchRequest;
[333] Fix | Delete
}
[334] Fix | Delete
const debouncedFetchData = (0,external_wp_compose_namespaceObject.useDebounce)(fetchData, 500);
[335] Fix | Delete
[336] Fix | Delete
// When the component unmounts, set isMountedRef to false. This will
[337] Fix | Delete
// let the async fetch callbacks know when to stop.
[338] Fix | Delete
(0,external_wp_element_namespaceObject.useEffect)(() => {
[339] Fix | Delete
isMountedRef.current = true;
[340] Fix | Delete
return () => {
[341] Fix | Delete
isMountedRef.current = false;
[342] Fix | Delete
};
[343] Fix | Delete
}, []);
[344] Fix | Delete
(0,external_wp_element_namespaceObject.useEffect)(() => {
[345] Fix | Delete
// Don't debounce the first fetch. This ensures that the first render
[346] Fix | Delete
// shows data as soon as possible.
[347] Fix | Delete
if (prevProps === undefined) {
[348] Fix | Delete
fetchData();
[349] Fix | Delete
} else if (!es6_default()(prevProps, props)) {
[350] Fix | Delete
debouncedFetchData();
[351] Fix | Delete
}
[352] Fix | Delete
});
[353] Fix | Delete
const hasResponse = !!response;
[354] Fix | Delete
const hasEmptyResponse = response === '';
[355] Fix | Delete
const hasError = response?.error;
[356] Fix | Delete
if (isLoading) {
[357] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LoadingResponsePlaceholder, {
[358] Fix | Delete
...props,
[359] Fix | Delete
showLoader: showLoader,
[360] Fix | Delete
children: hasResponse && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_element_namespaceObject.RawHTML, {
[361] Fix | Delete
className: className,
[362] Fix | Delete
children: response
[363] Fix | Delete
})
[364] Fix | Delete
});
[365] Fix | Delete
}
[366] Fix | Delete
if (hasEmptyResponse || !hasResponse) {
[367] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EmptyResponsePlaceholder, {
[368] Fix | Delete
...props
[369] Fix | Delete
});
[370] Fix | Delete
}
[371] Fix | Delete
if (hasError) {
[372] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ErrorResponsePlaceholder, {
[373] Fix | Delete
response: response,
[374] Fix | Delete
...props
[375] Fix | Delete
});
[376] Fix | Delete
}
[377] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_element_namespaceObject.RawHTML, {
[378] Fix | Delete
className: className,
[379] Fix | Delete
children: response
[380] Fix | Delete
});
[381] Fix | Delete
}
[382] Fix | Delete
[383] Fix | Delete
;// ./node_modules/@wordpress/server-side-render/build-module/index.js
[384] Fix | Delete
/**
[385] Fix | Delete
* WordPress dependencies
[386] Fix | Delete
*/
[387] Fix | Delete
[388] Fix | Delete
[389] Fix | Delete
[390] Fix | Delete
/**
[391] Fix | Delete
* Internal dependencies
[392] Fix | Delete
*/
[393] Fix | Delete
[394] Fix | Delete
[395] Fix | Delete
/**
[396] Fix | Delete
* Constants
[397] Fix | Delete
*/
[398] Fix | Delete
[399] Fix | Delete
const build_module_EMPTY_OBJECT = {};
[400] Fix | Delete
const ExportedServerSideRender = (0,external_wp_data_namespaceObject.withSelect)(select => {
[401] Fix | Delete
// FIXME: @wordpress/server-side-render should not depend on @wordpress/editor.
[402] Fix | Delete
// It is used by blocks that can be loaded into a *non-post* block editor.
[403] Fix | Delete
// eslint-disable-next-line @wordpress/data-no-store-string-literals
[404] Fix | Delete
const coreEditorSelect = select('core/editor');
[405] Fix | Delete
if (coreEditorSelect) {
[406] Fix | Delete
const currentPostId = coreEditorSelect.getCurrentPostId();
[407] Fix | Delete
// For templates and template parts we use a custom ID format.
[408] Fix | Delete
// Since they aren't real posts, we don't want to use their ID
[409] Fix | Delete
// for server-side rendering. Since they use a string based ID,
[410] Fix | Delete
// we can assume real post IDs are numbers.
[411] Fix | Delete
if (currentPostId && typeof currentPostId === 'number') {
[412] Fix | Delete
return {
[413] Fix | Delete
currentPostId
[414] Fix | Delete
};
[415] Fix | Delete
}
[416] Fix | Delete
}
[417] Fix | Delete
return build_module_EMPTY_OBJECT;
[418] Fix | Delete
})(({
[419] Fix | Delete
urlQueryArgs = build_module_EMPTY_OBJECT,
[420] Fix | Delete
currentPostId,
[421] Fix | Delete
...props
[422] Fix | Delete
}) => {
[423] Fix | Delete
const newUrlQueryArgs = (0,external_wp_element_namespaceObject.useMemo)(() => {
[424] Fix | Delete
if (!currentPostId) {
[425] Fix | Delete
return urlQueryArgs;
[426] Fix | Delete
}
[427] Fix | Delete
return {
[428] Fix | Delete
post_id: currentPostId,
[429] Fix | Delete
...urlQueryArgs
[430] Fix | Delete
};
[431] Fix | Delete
}, [currentPostId, urlQueryArgs]);
[432] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ServerSideRender, {
[433] Fix | Delete
urlQueryArgs: newUrlQueryArgs,
[434] Fix | Delete
...props
[435] Fix | Delete
});
[436] Fix | Delete
});
[437] Fix | Delete
/* harmony default export */ const build_module = (ExportedServerSideRender);
[438] Fix | Delete
[439] Fix | Delete
(window.wp = window.wp || {}).serverSideRender = __webpack_exports__["default"];
[440] Fix | Delete
/******/ })()
[441] Fix | Delete
;
[442] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function