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: editor.js
getEntityRecord,
[19500] Fix | Delete
getUserPatternCategories,
[19501] Fix | Delete
getBlockPatternCategories
[19502] Fix | Delete
} = select(external_wp_coreData_namespaceObject.store);
[19503] Fix | Delete
const {
[19504] Fix | Delete
get
[19505] Fix | Delete
} = select(external_wp_preferences_namespaceObject.store);
[19506] Fix | Delete
const {
[19507] Fix | Delete
getBlockTypes
[19508] Fix | Delete
} = select(external_wp_blocks_namespaceObject.store);
[19509] Fix | Delete
const {
[19510] Fix | Delete
getBlocksByName,
[19511] Fix | Delete
getBlockAttributes
[19512] Fix | Delete
} = select(external_wp_blockEditor_namespaceObject.store);
[19513] Fix | Delete
const siteSettings = canUser('read', 'settings') ? getEntityRecord('root', 'site') : undefined;
[19514] Fix | Delete
function getSectionRootBlock() {
[19515] Fix | Delete
var _getBlocksByName$find;
[19516] Fix | Delete
if (renderingMode === 'template-locked') {
[19517] Fix | Delete
var _getBlocksByName$;
[19518] Fix | Delete
return (_getBlocksByName$ = getBlocksByName('core/post-content')?.[0]) !== null && _getBlocksByName$ !== void 0 ? _getBlocksByName$ : '';
[19519] Fix | Delete
}
[19520] Fix | Delete
return (_getBlocksByName$find = getBlocksByName('core/group').find(clientId => getBlockAttributes(clientId)?.tagName === 'main')) !== null && _getBlocksByName$find !== void 0 ? _getBlocksByName$find : '';
[19521] Fix | Delete
}
[19522] Fix | Delete
return {
[19523] Fix | Delete
allowRightClickOverrides: get('core', 'allowRightClickOverrides'),
[19524] Fix | Delete
blockTypes: getBlockTypes(),
[19525] Fix | Delete
canUseUnfilteredHTML: getRawEntityRecord('postType', postType, postId)?._links?.hasOwnProperty('wp:action-unfiltered-html'),
[19526] Fix | Delete
focusMode: get('core', 'focusMode'),
[19527] Fix | Delete
hasFixedToolbar: get('core', 'fixedToolbar') || !isLargeViewport,
[19528] Fix | Delete
hiddenBlockTypes: get('core', 'hiddenBlockTypes'),
[19529] Fix | Delete
isDistractionFree: get('core', 'distractionFree'),
[19530] Fix | Delete
keepCaretInsideBlock: get('core', 'keepCaretInsideBlock'),
[19531] Fix | Delete
hasUploadPermissions: (_canUser = canUser('create', 'media')) !== null && _canUser !== void 0 ? _canUser : true,
[19532] Fix | Delete
userCanCreatePages: canUser('create', 'pages'),
[19533] Fix | Delete
pageOnFront: siteSettings?.page_on_front,
[19534] Fix | Delete
pageForPosts: siteSettings?.page_for_posts,
[19535] Fix | Delete
userPatternCategories: getUserPatternCategories(),
[19536] Fix | Delete
restBlockPatternCategories: getBlockPatternCategories(),
[19537] Fix | Delete
sectionRootClientId: getSectionRootBlock()
[19538] Fix | Delete
};
[19539] Fix | Delete
}, [postType, postId, isLargeViewport, renderingMode]);
[19540] Fix | Delete
const {
[19541] Fix | Delete
merged: mergedGlobalStyles
[19542] Fix | Delete
} = useGlobalStylesContext();
[19543] Fix | Delete
const globalStylesData = (_mergedGlobalStyles$s = mergedGlobalStyles.styles) !== null && _mergedGlobalStyles$s !== void 0 ? _mergedGlobalStyles$s : DEFAULT_STYLES;
[19544] Fix | Delete
const settingsBlockPatterns = (_settings$__experimen = settings.__experimentalAdditionalBlockPatterns) !== null && _settings$__experimen !== void 0 ? _settings$__experimen :
[19545] Fix | Delete
// WP 6.0
[19546] Fix | Delete
settings.__experimentalBlockPatterns; // WP 5.9
[19547] Fix | Delete
const settingsBlockPatternCategories = (_settings$__experimen2 = settings.__experimentalAdditionalBlockPatternCategories) !== null && _settings$__experimen2 !== void 0 ? _settings$__experimen2 :
[19548] Fix | Delete
// WP 6.0
[19549] Fix | Delete
settings.__experimentalBlockPatternCategories; // WP 5.9
[19550] Fix | Delete
[19551] Fix | Delete
const blockPatterns = (0,external_wp_element_namespaceObject.useMemo)(() => [...(settingsBlockPatterns || [])].filter(({
[19552] Fix | Delete
postTypes
[19553] Fix | Delete
}) => {
[19554] Fix | Delete
return !postTypes || Array.isArray(postTypes) && postTypes.includes(postType);
[19555] Fix | Delete
}), [settingsBlockPatterns, postType]);
[19556] Fix | Delete
const blockPatternCategories = (0,external_wp_element_namespaceObject.useMemo)(() => [...(settingsBlockPatternCategories || []), ...(restBlockPatternCategories || [])].filter((x, index, arr) => index === arr.findIndex(y => x.name === y.name)), [settingsBlockPatternCategories, restBlockPatternCategories]);
[19557] Fix | Delete
const {
[19558] Fix | Delete
undo,
[19559] Fix | Delete
setIsInserterOpened
[19560] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
[19561] Fix | Delete
const {
[19562] Fix | Delete
saveEntityRecord
[19563] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
[19564] Fix | Delete
[19565] Fix | Delete
/**
[19566] Fix | Delete
* Creates a Post entity.
[19567] Fix | Delete
* This is utilised by the Link UI to allow for on-the-fly creation of Posts/Pages.
[19568] Fix | Delete
*
[19569] Fix | Delete
* @param {Object} options parameters for the post being created. These mirror those used on 3rd param of saveEntityRecord.
[19570] Fix | Delete
* @return {Object} the post type object that was created.
[19571] Fix | Delete
*/
[19572] Fix | Delete
const createPageEntity = (0,external_wp_element_namespaceObject.useCallback)(options => {
[19573] Fix | Delete
if (!userCanCreatePages) {
[19574] Fix | Delete
return Promise.reject({
[19575] Fix | Delete
message: (0,external_wp_i18n_namespaceObject.__)('You do not have permission to create Pages.')
[19576] Fix | Delete
});
[19577] Fix | Delete
}
[19578] Fix | Delete
return saveEntityRecord('postType', 'page', options);
[19579] Fix | Delete
}, [saveEntityRecord, userCanCreatePages]);
[19580] Fix | Delete
const allowedBlockTypes = (0,external_wp_element_namespaceObject.useMemo)(() => {
[19581] Fix | Delete
// Omit hidden block types if exists and non-empty.
[19582] Fix | Delete
if (hiddenBlockTypes && hiddenBlockTypes.length > 0) {
[19583] Fix | Delete
// Defer to passed setting for `allowedBlockTypes` if provided as
[19584] Fix | Delete
// anything other than `true` (where `true` is equivalent to allow
[19585] Fix | Delete
// all block types).
[19586] Fix | Delete
const defaultAllowedBlockTypes = true === settings.allowedBlockTypes ? blockTypes.map(({
[19587] Fix | Delete
name
[19588] Fix | Delete
}) => name) : settings.allowedBlockTypes || [];
[19589] Fix | Delete
return defaultAllowedBlockTypes.filter(type => !hiddenBlockTypes.includes(type));
[19590] Fix | Delete
}
[19591] Fix | Delete
return settings.allowedBlockTypes;
[19592] Fix | Delete
}, [settings.allowedBlockTypes, hiddenBlockTypes, blockTypes]);
[19593] Fix | Delete
const forceDisableFocusMode = settings.focusMode === false;
[19594] Fix | Delete
return (0,external_wp_element_namespaceObject.useMemo)(() => {
[19595] Fix | Delete
const blockEditorSettings = {
[19596] Fix | Delete
...Object.fromEntries(Object.entries(settings).filter(([key]) => BLOCK_EDITOR_SETTINGS.includes(key))),
[19597] Fix | Delete
[globalStylesDataKey]: globalStylesData,
[19598] Fix | Delete
allowedBlockTypes,
[19599] Fix | Delete
allowRightClickOverrides,
[19600] Fix | Delete
focusMode: focusMode && !forceDisableFocusMode,
[19601] Fix | Delete
hasFixedToolbar,
[19602] Fix | Delete
isDistractionFree,
[19603] Fix | Delete
keepCaretInsideBlock,
[19604] Fix | Delete
mediaUpload: hasUploadPermissions ? mediaUpload : undefined,
[19605] Fix | Delete
__experimentalBlockPatterns: blockPatterns,
[19606] Fix | Delete
[selectBlockPatternsKey]: select => {
[19607] Fix | Delete
const {
[19608] Fix | Delete
hasFinishedResolution,
[19609] Fix | Delete
getBlockPatternsForPostType
[19610] Fix | Delete
} = unlock(select(external_wp_coreData_namespaceObject.store));
[19611] Fix | Delete
const patterns = getBlockPatternsForPostType(postType);
[19612] Fix | Delete
return hasFinishedResolution('getBlockPatterns') ? patterns : undefined;
[19613] Fix | Delete
},
[19614] Fix | Delete
[reusableBlocksSelectKey]: __experimentalReusableBlocksSelect,
[19615] Fix | Delete
__experimentalBlockPatternCategories: blockPatternCategories,
[19616] Fix | Delete
__experimentalUserPatternCategories: userPatternCategories,
[19617] Fix | Delete
__experimentalFetchLinkSuggestions: (search, searchOptions) => (0,external_wp_coreData_namespaceObject.__experimentalFetchLinkSuggestions)(search, searchOptions, settings),
[19618] Fix | Delete
inserterMediaCategories: media_categories,
[19619] Fix | Delete
__experimentalFetchRichUrlData: external_wp_coreData_namespaceObject.__experimentalFetchUrlData,
[19620] Fix | Delete
// Todo: This only checks the top level post, not the post within a template or any other entity that can be edited.
[19621] Fix | Delete
// This might be better as a generic "canUser" selector.
[19622] Fix | Delete
__experimentalCanUserUseUnfilteredHTML: canUseUnfilteredHTML,
[19623] Fix | Delete
//Todo: this is only needed for native and should probably be removed.
[19624] Fix | Delete
__experimentalUndo: undo,
[19625] Fix | Delete
// Check whether we want all site editor frames to have outlines
[19626] Fix | Delete
// including the navigation / pattern / parts editors.
[19627] Fix | Delete
outlineMode: postType === 'wp_template',
[19628] Fix | Delete
// Check these two properties: they were not present in the site editor.
[19629] Fix | Delete
__experimentalCreatePageEntity: createPageEntity,
[19630] Fix | Delete
__experimentalUserCanCreatePages: userCanCreatePages,
[19631] Fix | Delete
pageOnFront,
[19632] Fix | Delete
pageForPosts,
[19633] Fix | Delete
__experimentalPreferPatternsOnRoot: postType === 'wp_template',
[19634] Fix | Delete
templateLock: postType === 'wp_navigation' ? 'insert' : settings.templateLock,
[19635] Fix | Delete
template: postType === 'wp_navigation' ? [['core/navigation', {}, []]] : settings.template,
[19636] Fix | Delete
__experimentalSetIsInserterOpened: setIsInserterOpened
[19637] Fix | Delete
};
[19638] Fix | Delete
lock(blockEditorSettings, {
[19639] Fix | Delete
sectionRootClientId
[19640] Fix | Delete
});
[19641] Fix | Delete
return blockEditorSettings;
[19642] Fix | Delete
}, [allowedBlockTypes, allowRightClickOverrides, focusMode, forceDisableFocusMode, hasFixedToolbar, isDistractionFree, keepCaretInsideBlock, settings, hasUploadPermissions, userPatternCategories, blockPatterns, blockPatternCategories, canUseUnfilteredHTML, undo, createPageEntity, userCanCreatePages, pageOnFront, pageForPosts, postType, setIsInserterOpened, sectionRootClientId, globalStylesData]);
[19643] Fix | Delete
}
[19644] Fix | Delete
/* harmony default export */ const use_block_editor_settings = (useBlockEditorSettings);
[19645] Fix | Delete
[19646] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/provider/disable-non-page-content-blocks.js
[19647] Fix | Delete
/**
[19648] Fix | Delete
* WordPress dependencies
[19649] Fix | Delete
*/
[19650] Fix | Delete
[19651] Fix | Delete
[19652] Fix | Delete
[19653] Fix | Delete
[19654] Fix | Delete
const DEFAULT_CONTENT_ONLY_BLOCKS = ['core/post-title', 'core/post-featured-image', 'core/post-content', 'core/template-part'];
[19655] Fix | Delete
[19656] Fix | Delete
/**
[19657] Fix | Delete
* Component that when rendered, makes it so that the site editor allows only
[19658] Fix | Delete
* page content to be edited.
[19659] Fix | Delete
*/
[19660] Fix | Delete
function DisableNonPageContentBlocks() {
[19661] Fix | Delete
const contentOnlyBlocks = (0,external_wp_hooks_namespaceObject.applyFilters)('editor.postContentBlockTypes', DEFAULT_CONTENT_ONLY_BLOCKS);
[19662] Fix | Delete
[19663] Fix | Delete
// Note that there are two separate subscription because the result for each
[19664] Fix | Delete
// returns a new array.
[19665] Fix | Delete
const contentOnlyIds = (0,external_wp_data_namespaceObject.useSelect)(select => {
[19666] Fix | Delete
const {
[19667] Fix | Delete
getBlocksByName,
[19668] Fix | Delete
getBlockParents,
[19669] Fix | Delete
getBlockName
[19670] Fix | Delete
} = select(external_wp_blockEditor_namespaceObject.store);
[19671] Fix | Delete
return getBlocksByName(contentOnlyBlocks).filter(clientId => getBlockParents(clientId).every(parentClientId => {
[19672] Fix | Delete
const parentBlockName = getBlockName(parentClientId);
[19673] Fix | Delete
return (
[19674] Fix | Delete
// Ignore descendents of the query block.
[19675] Fix | Delete
parentBlockName !== 'core/query' &&
[19676] Fix | Delete
// Enable only the top-most block.
[19677] Fix | Delete
!contentOnlyBlocks.includes(parentBlockName)
[19678] Fix | Delete
);
[19679] Fix | Delete
}));
[19680] Fix | Delete
}, []);
[19681] Fix | Delete
const disabledIds = (0,external_wp_data_namespaceObject.useSelect)(select => {
[19682] Fix | Delete
const {
[19683] Fix | Delete
getBlocksByName,
[19684] Fix | Delete
getBlockOrder
[19685] Fix | Delete
} = select(external_wp_blockEditor_namespaceObject.store);
[19686] Fix | Delete
return getBlocksByName(['core/template-part']).flatMap(clientId => getBlockOrder(clientId));
[19687] Fix | Delete
}, []);
[19688] Fix | Delete
const registry = (0,external_wp_data_namespaceObject.useRegistry)();
[19689] Fix | Delete
(0,external_wp_element_namespaceObject.useEffect)(() => {
[19690] Fix | Delete
const {
[19691] Fix | Delete
setBlockEditingMode,
[19692] Fix | Delete
unsetBlockEditingMode
[19693] Fix | Delete
} = registry.dispatch(external_wp_blockEditor_namespaceObject.store);
[19694] Fix | Delete
registry.batch(() => {
[19695] Fix | Delete
setBlockEditingMode('', 'disabled');
[19696] Fix | Delete
for (const clientId of contentOnlyIds) {
[19697] Fix | Delete
setBlockEditingMode(clientId, 'contentOnly');
[19698] Fix | Delete
}
[19699] Fix | Delete
for (const clientId of disabledIds) {
[19700] Fix | Delete
setBlockEditingMode(clientId, 'disabled');
[19701] Fix | Delete
}
[19702] Fix | Delete
});
[19703] Fix | Delete
return () => {
[19704] Fix | Delete
registry.batch(() => {
[19705] Fix | Delete
unsetBlockEditingMode('');
[19706] Fix | Delete
for (const clientId of contentOnlyIds) {
[19707] Fix | Delete
unsetBlockEditingMode(clientId);
[19708] Fix | Delete
}
[19709] Fix | Delete
for (const clientId of disabledIds) {
[19710] Fix | Delete
unsetBlockEditingMode(clientId);
[19711] Fix | Delete
}
[19712] Fix | Delete
});
[19713] Fix | Delete
};
[19714] Fix | Delete
}, [contentOnlyIds, disabledIds, registry]);
[19715] Fix | Delete
return null;
[19716] Fix | Delete
}
[19717] Fix | Delete
[19718] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/provider/navigation-block-editing-mode.js
[19719] Fix | Delete
/**
[19720] Fix | Delete
* WordPress dependencies
[19721] Fix | Delete
*/
[19722] Fix | Delete
[19723] Fix | Delete
[19724] Fix | Delete
[19725] Fix | Delete
[19726] Fix | Delete
/**
[19727] Fix | Delete
* For the Navigation block editor, we need to force the block editor to contentOnly for that block.
[19728] Fix | Delete
*
[19729] Fix | Delete
* Set block editing mode to contentOnly when entering Navigation focus mode.
[19730] Fix | Delete
* this ensures that non-content controls on the block will be hidden and thus
[19731] Fix | Delete
* the user can focus on editing the Navigation Menu content only.
[19732] Fix | Delete
*/
[19733] Fix | Delete
[19734] Fix | Delete
function NavigationBlockEditingMode() {
[19735] Fix | Delete
// In the navigation block editor,
[19736] Fix | Delete
// the navigation block is the only root block.
[19737] Fix | Delete
const blockClientId = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_blockEditor_namespaceObject.store).getBlockOrder()?.[0], []);
[19738] Fix | Delete
const {
[19739] Fix | Delete
setBlockEditingMode,
[19740] Fix | Delete
unsetBlockEditingMode
[19741] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
[19742] Fix | Delete
(0,external_wp_element_namespaceObject.useEffect)(() => {
[19743] Fix | Delete
if (!blockClientId) {
[19744] Fix | Delete
return;
[19745] Fix | Delete
}
[19746] Fix | Delete
setBlockEditingMode(blockClientId, 'contentOnly');
[19747] Fix | Delete
return () => {
[19748] Fix | Delete
unsetBlockEditingMode(blockClientId);
[19749] Fix | Delete
};
[19750] Fix | Delete
}, [blockClientId, unsetBlockEditingMode, setBlockEditingMode]);
[19751] Fix | Delete
}
[19752] Fix | Delete
[19753] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/provider/use-hide-blocks-from-inserter.js
[19754] Fix | Delete
/**
[19755] Fix | Delete
* WordPress dependencies
[19756] Fix | Delete
*/
[19757] Fix | Delete
[19758] Fix | Delete
[19759] Fix | Delete
[19760] Fix | Delete
// These post types are "structural" block lists.
[19761] Fix | Delete
// We should be allowed to use
[19762] Fix | Delete
// the post content and template parts blocks within them.
[19763] Fix | Delete
const POST_TYPES_ALLOWING_POST_CONTENT_TEMPLATE_PART = ['wp_block', 'wp_template', 'wp_template_part'];
[19764] Fix | Delete
[19765] Fix | Delete
/**
[19766] Fix | Delete
* In some specific contexts,
[19767] Fix | Delete
* the template part and post content blocks need to be hidden.
[19768] Fix | Delete
*
[19769] Fix | Delete
* @param {string} postType Post Type
[19770] Fix | Delete
* @param {string} mode Rendering mode
[19771] Fix | Delete
*/
[19772] Fix | Delete
function useHideBlocksFromInserter(postType, mode) {
[19773] Fix | Delete
(0,external_wp_element_namespaceObject.useEffect)(() => {
[19774] Fix | Delete
/*
[19775] Fix | Delete
* Prevent adding template part in the editor.
[19776] Fix | Delete
*/
[19777] Fix | Delete
(0,external_wp_hooks_namespaceObject.addFilter)('blockEditor.__unstableCanInsertBlockType', 'removeTemplatePartsFromInserter', (canInsert, blockType) => {
[19778] Fix | Delete
if (!POST_TYPES_ALLOWING_POST_CONTENT_TEMPLATE_PART.includes(postType) && blockType.name === 'core/template-part' && mode === 'post-only') {
[19779] Fix | Delete
return false;
[19780] Fix | Delete
}
[19781] Fix | Delete
return canInsert;
[19782] Fix | Delete
});
[19783] Fix | Delete
[19784] Fix | Delete
/*
[19785] Fix | Delete
* Prevent adding post content block (except in query block) in the editor.
[19786] Fix | Delete
*/
[19787] Fix | Delete
(0,external_wp_hooks_namespaceObject.addFilter)('blockEditor.__unstableCanInsertBlockType', 'removePostContentFromInserter', (canInsert, blockType, rootClientId, {
[19788] Fix | Delete
getBlockParentsByBlockName
[19789] Fix | Delete
}) => {
[19790] Fix | Delete
if (!POST_TYPES_ALLOWING_POST_CONTENT_TEMPLATE_PART.includes(postType) && blockType.name === 'core/post-content') {
[19791] Fix | Delete
return getBlockParentsByBlockName(rootClientId, 'core/query').length > 0;
[19792] Fix | Delete
}
[19793] Fix | Delete
return canInsert;
[19794] Fix | Delete
});
[19795] Fix | Delete
return () => {
[19796] Fix | Delete
(0,external_wp_hooks_namespaceObject.removeFilter)('blockEditor.__unstableCanInsertBlockType', 'removeTemplatePartsFromInserter');
[19797] Fix | Delete
(0,external_wp_hooks_namespaceObject.removeFilter)('blockEditor.__unstableCanInsertBlockType', 'removePostContentFromInserter');
[19798] Fix | Delete
};
[19799] Fix | Delete
}, [postType, mode]);
[19800] Fix | Delete
}
[19801] Fix | Delete
[19802] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/keyboard.js
[19803] Fix | Delete
/**
[19804] Fix | Delete
* WordPress dependencies
[19805] Fix | Delete
*/
[19806] Fix | Delete
[19807] Fix | Delete
[19808] Fix | Delete
[19809] Fix | Delete
const keyboard = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_primitives_namespaceObject.SVG, {
[19810] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[19811] Fix | Delete
viewBox: "0 0 24 24",
[19812] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[19813] Fix | Delete
d: "m16 15.5h-8v-1.5h8zm-7.5-2.5h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm-9-3h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2z"
[19814] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[19815] Fix | Delete
d: "m18.5 6.5h-13a.5.5 0 0 0 -.5.5v9.5a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-9.5a.5.5 0 0 0 -.5-.5zm-13-1.5h13a2 2 0 0 1 2 2v9.5a2 2 0 0 1 -2 2h-13a2 2 0 0 1 -2-2v-9.5a2 2 0 0 1 2-2z"
[19816] Fix | Delete
})]
[19817] Fix | Delete
});
[19818] Fix | Delete
/* harmony default export */ const library_keyboard = (keyboard);
[19819] Fix | Delete
[19820] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/list-view.js
[19821] Fix | Delete
/**
[19822] Fix | Delete
* WordPress dependencies
[19823] Fix | Delete
*/
[19824] Fix | Delete
[19825] Fix | Delete
[19826] Fix | Delete
const listView = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[19827] Fix | Delete
viewBox: "0 0 24 24",
[19828] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[19829] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[19830] Fix | Delete
d: "M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"
[19831] Fix | Delete
})
[19832] Fix | Delete
});
[19833] Fix | Delete
/* harmony default export */ const list_view = (listView);
[19834] Fix | Delete
[19835] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/code.js
[19836] Fix | Delete
/**
[19837] Fix | Delete
* WordPress dependencies
[19838] Fix | Delete
*/
[19839] Fix | Delete
[19840] Fix | Delete
[19841] Fix | Delete
const code = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[19842] Fix | Delete
viewBox: "0 0 24 24",
[19843] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[19844] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[19845] Fix | Delete
d: "M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"
[19846] Fix | Delete
})
[19847] Fix | Delete
});
[19848] Fix | Delete
/* harmony default export */ const library_code = (code);
[19849] Fix | Delete
[19850] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/drawer-left.js
[19851] Fix | Delete
/**
[19852] Fix | Delete
* WordPress dependencies
[19853] Fix | Delete
*/
[19854] Fix | Delete
[19855] Fix | Delete
[19856] Fix | Delete
const drawerLeft = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[19857] Fix | Delete
width: "24",
[19858] Fix | Delete
height: "24",
[19859] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[19860] Fix | Delete
viewBox: "0 0 24 24",
[19861] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[19862] Fix | Delete
fillRule: "evenodd",
[19863] Fix | Delete
clipRule: "evenodd",
[19864] Fix | Delete
d: "M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.5 18.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h2.5v13zm10-.5c0 .3-.2.5-.5.5h-8v-13h8c.3 0 .5.2.5.5v12z"
[19865] Fix | Delete
})
[19866] Fix | Delete
});
[19867] Fix | Delete
/* harmony default export */ const drawer_left = (drawerLeft);
[19868] Fix | Delete
[19869] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/drawer-right.js
[19870] Fix | Delete
/**
[19871] Fix | Delete
* WordPress dependencies
[19872] Fix | Delete
*/
[19873] Fix | Delete
[19874] Fix | Delete
[19875] Fix | Delete
const drawerRight = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[19876] Fix | Delete
width: "24",
[19877] Fix | Delete
height: "24",
[19878] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[19879] Fix | Delete
viewBox: "0 0 24 24",
[19880] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[19881] Fix | Delete
fillRule: "evenodd",
[19882] Fix | Delete
clipRule: "evenodd",
[19883] Fix | Delete
d: "M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z"
[19884] Fix | Delete
})
[19885] Fix | Delete
});
[19886] Fix | Delete
/* harmony default export */ const drawer_right = (drawerRight);
[19887] Fix | Delete
[19888] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/block-default.js
[19889] Fix | Delete
/**
[19890] Fix | Delete
* WordPress dependencies
[19891] Fix | Delete
*/
[19892] Fix | Delete
[19893] Fix | Delete
[19894] Fix | Delete
const blockDefault = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[19895] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[19896] Fix | Delete
viewBox: "0 0 24 24",
[19897] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[19898] Fix | Delete
d: "M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"
[19899] Fix | Delete
})
[19900] Fix | Delete
});
[19901] Fix | Delete
/* harmony default export */ const block_default = (blockDefault);
[19902] Fix | Delete
[19903] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-list-bullets.js
[19904] Fix | Delete
/**
[19905] Fix | Delete
* WordPress dependencies
[19906] Fix | Delete
*/
[19907] Fix | Delete
[19908] Fix | Delete
[19909] Fix | Delete
const formatListBullets = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[19910] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[19911] Fix | Delete
viewBox: "0 0 24 24",
[19912] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[19913] Fix | Delete
d: "M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"
[19914] Fix | Delete
})
[19915] Fix | Delete
});
[19916] Fix | Delete
/* harmony default export */ const format_list_bullets = (formatListBullets);
[19917] Fix | Delete
[19918] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/external.js
[19919] Fix | Delete
/**
[19920] Fix | Delete
* WordPress dependencies
[19921] Fix | Delete
*/
[19922] Fix | Delete
[19923] Fix | Delete
[19924] Fix | Delete
const external = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[19925] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[19926] Fix | Delete
viewBox: "0 0 24 24",
[19927] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[19928] Fix | Delete
d: "M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"
[19929] Fix | Delete
})
[19930] Fix | Delete
});
[19931] Fix | Delete
/* harmony default export */ const library_external = (external);
[19932] Fix | Delete
[19933] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/pencil.js
[19934] Fix | Delete
/**
[19935] Fix | Delete
* WordPress dependencies
[19936] Fix | Delete
*/
[19937] Fix | Delete
[19938] Fix | Delete
[19939] Fix | Delete
const pencil = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[19940] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[19941] Fix | Delete
viewBox: "0 0 24 24",
[19942] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[19943] Fix | Delete
d: "m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"
[19944] Fix | Delete
})
[19945] Fix | Delete
});
[19946] Fix | Delete
/* harmony default export */ const library_pencil = (pencil);
[19947] Fix | Delete
[19948] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/edit.js
[19949] Fix | Delete
/**
[19950] Fix | Delete
* Internal dependencies
[19951] Fix | Delete
*/
[19952] Fix | Delete
[19953] Fix | Delete
[19954] Fix | Delete
/* harmony default export */ const edit = (library_pencil);
[19955] Fix | Delete
[19956] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/pattern-rename-modal/index.js
[19957] Fix | Delete
/**
[19958] Fix | Delete
* WordPress dependencies
[19959] Fix | Delete
*/
[19960] Fix | Delete
[19961] Fix | Delete
[19962] Fix | Delete
[19963] Fix | Delete
[19964] Fix | Delete
[19965] Fix | Delete
/**
[19966] Fix | Delete
* Internal dependencies
[19967] Fix | Delete
*/
[19968] Fix | Delete
[19969] Fix | Delete
[19970] Fix | Delete
[19971] Fix | Delete
[19972] Fix | Delete
const {
[19973] Fix | Delete
RenamePatternModal
[19974] Fix | Delete
} = unlock(external_wp_patterns_namespaceObject.privateApis);
[19975] Fix | Delete
const modalName = 'editor/pattern-rename';
[19976] Fix | Delete
function PatternRenameModal() {
[19977] Fix | Delete
const {
[19978] Fix | Delete
record,
[19979] Fix | Delete
postType
[19980] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
[19981] Fix | Delete
const {
[19982] Fix | Delete
getCurrentPostType,
[19983] Fix | Delete
getCurrentPostId
[19984] Fix | Delete
} = select(store_store);
[19985] Fix | Delete
const {
[19986] Fix | Delete
getEditedEntityRecord
[19987] Fix | Delete
} = select(external_wp_coreData_namespaceObject.store);
[19988] Fix | Delete
const _postType = getCurrentPostType();
[19989] Fix | Delete
return {
[19990] Fix | Delete
record: getEditedEntityRecord('postType', _postType, getCurrentPostId()),
[19991] Fix | Delete
postType: _postType
[19992] Fix | Delete
};
[19993] Fix | Delete
}, []);
[19994] Fix | Delete
const {
[19995] Fix | Delete
closeModal
[19996] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
[19997] Fix | Delete
const isActive = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).isModalActive(modalName));
[19998] Fix | Delete
if (!isActive || postType !== PATTERN_POST_TYPE) {
[19999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function