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: block-editor.js
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-controls-tabs/settings-tab-hint.js
[66500] Fix | Delete
/**
[66501] Fix | Delete
* WordPress dependencies
[66502] Fix | Delete
*/
[66503] Fix | Delete
[66504] Fix | Delete
[66505] Fix | Delete
[66506] Fix | Delete
[66507] Fix | Delete
[66508] Fix | Delete
[66509] Fix | Delete
[66510] Fix | Delete
[66511] Fix | Delete
[66512] Fix | Delete
const PREFERENCE_NAME = 'isInspectorControlsTabsHintVisible';
[66513] Fix | Delete
function InspectorControlsTabsHint() {
[66514] Fix | Delete
const isInspectorControlsTabsHintVisible = (0,external_wp_data_namespaceObject.useSelect)(select => {
[66515] Fix | Delete
var _select$get;
[66516] Fix | Delete
return (_select$get = select(external_wp_preferences_namespaceObject.store).get('core', PREFERENCE_NAME)) !== null && _select$get !== void 0 ? _select$get : true;
[66517] Fix | Delete
}, []);
[66518] Fix | Delete
const ref = (0,external_wp_element_namespaceObject.useRef)();
[66519] Fix | Delete
const {
[66520] Fix | Delete
set: setPreference
[66521] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_preferences_namespaceObject.store);
[66522] Fix | Delete
if (!isInspectorControlsTabsHintVisible) {
[66523] Fix | Delete
return null;
[66524] Fix | Delete
}
[66525] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
[66526] Fix | Delete
ref: ref,
[66527] Fix | Delete
className: "block-editor-inspector-controls-tabs__hint",
[66528] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
[66529] Fix | Delete
className: "block-editor-inspector-controls-tabs__hint-content",
[66530] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)("Looking for other block settings? They've moved to the styles tab.")
[66531] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
[66532] Fix | Delete
className: "block-editor-inspector-controls-tabs__hint-dismiss",
[66533] Fix | Delete
icon: library_close,
[66534] Fix | Delete
iconSize: "16",
[66535] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Dismiss hint'),
[66536] Fix | Delete
onClick: () => {
[66537] Fix | Delete
// Retain focus when dismissing the element.
[66538] Fix | Delete
const previousElement = external_wp_dom_namespaceObject.focus.tabbable.findPrevious(ref.current);
[66539] Fix | Delete
previousElement?.focus();
[66540] Fix | Delete
setPreference('core', PREFERENCE_NAME, false);
[66541] Fix | Delete
},
[66542] Fix | Delete
showTooltip: false
[66543] Fix | Delete
})]
[66544] Fix | Delete
});
[66545] Fix | Delete
}
[66546] Fix | Delete
[66547] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-controls-tabs/settings-tab.js
[66548] Fix | Delete
/**
[66549] Fix | Delete
* Internal dependencies
[66550] Fix | Delete
*/
[66551] Fix | Delete
[66552] Fix | Delete
[66553] Fix | Delete
[66554] Fix | Delete
[66555] Fix | Delete
[66556] Fix | Delete
[66557] Fix | Delete
[66558] Fix | Delete
const SettingsTab = ({
[66559] Fix | Delete
showAdvancedControls = false
[66560] Fix | Delete
}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[66561] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls.Slot, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(position_controls_panel, {}), showAdvancedControls && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
[66562] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(advanced_controls_panel, {})
[66563] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InspectorControlsTabsHint, {})]
[66564] Fix | Delete
});
[66565] Fix | Delete
/* harmony default export */ const settings_tab = (SettingsTab);
[66566] Fix | Delete
[66567] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-controls-tabs/styles-tab.js
[66568] Fix | Delete
/**
[66569] Fix | Delete
* WordPress dependencies
[66570] Fix | Delete
*/
[66571] Fix | Delete
[66572] Fix | Delete
[66573] Fix | Delete
[66574] Fix | Delete
/**
[66575] Fix | Delete
* Internal dependencies
[66576] Fix | Delete
*/
[66577] Fix | Delete
[66578] Fix | Delete
[66579] Fix | Delete
[66580] Fix | Delete
[66581] Fix | Delete
[66582] Fix | Delete
[66583] Fix | Delete
const StylesTab = ({
[66584] Fix | Delete
blockName,
[66585] Fix | Delete
clientId,
[66586] Fix | Delete
hasBlockStyles
[66587] Fix | Delete
}) => {
[66588] Fix | Delete
const borderPanelLabel = useBorderPanelLabel({
[66589] Fix | Delete
blockName
[66590] Fix | Delete
});
[66591] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[66592] Fix | Delete
children: [hasBlockStyles && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
[66593] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
[66594] Fix | Delete
title: (0,external_wp_i18n_namespaceObject.__)('Styles'),
[66595] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_styles, {
[66596] Fix | Delete
clientId: clientId
[66597] Fix | Delete
})
[66598] Fix | Delete
})
[66599] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls.Slot, {
[66600] Fix | Delete
group: "color",
[66601] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Color'),
[66602] Fix | Delete
className: "color-block-support-panel__inner-wrapper"
[66603] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls.Slot, {
[66604] Fix | Delete
group: "background",
[66605] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Background image')
[66606] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls.Slot, {
[66607] Fix | Delete
group: "filter"
[66608] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls.Slot, {
[66609] Fix | Delete
group: "typography",
[66610] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Typography')
[66611] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls.Slot, {
[66612] Fix | Delete
group: "dimensions",
[66613] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Dimensions')
[66614] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls.Slot, {
[66615] Fix | Delete
group: "border",
[66616] Fix | Delete
label: borderPanelLabel
[66617] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls.Slot, {
[66618] Fix | Delete
group: "styles"
[66619] Fix | Delete
})]
[66620] Fix | Delete
});
[66621] Fix | Delete
};
[66622] Fix | Delete
/* harmony default export */ const styles_tab = (StylesTab);
[66623] Fix | Delete
[66624] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-controls-tabs/use-is-list-view-tab-disabled.js
[66625] Fix | Delete
// List view tab restricts the blocks that may render to it via the
[66626] Fix | Delete
// allowlist below.
[66627] Fix | Delete
const allowlist = ['core/navigation'];
[66628] Fix | Delete
const useIsListViewTabDisabled = blockName => {
[66629] Fix | Delete
return !allowlist.includes(blockName);
[66630] Fix | Delete
};
[66631] Fix | Delete
/* harmony default export */ const use_is_list_view_tab_disabled = (useIsListViewTabDisabled);
[66632] Fix | Delete
[66633] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-controls-tabs/index.js
[66634] Fix | Delete
/**
[66635] Fix | Delete
* WordPress dependencies
[66636] Fix | Delete
*/
[66637] Fix | Delete
[66638] Fix | Delete
[66639] Fix | Delete
[66640] Fix | Delete
[66641] Fix | Delete
/**
[66642] Fix | Delete
* Internal dependencies
[66643] Fix | Delete
*/
[66644] Fix | Delete
[66645] Fix | Delete
[66646] Fix | Delete
[66647] Fix | Delete
[66648] Fix | Delete
[66649] Fix | Delete
[66650] Fix | Delete
[66651] Fix | Delete
[66652] Fix | Delete
const {
[66653] Fix | Delete
Tabs: inspector_controls_tabs_Tabs
[66654] Fix | Delete
} = unlock(external_wp_components_namespaceObject.privateApis);
[66655] Fix | Delete
function InspectorControlsTabs({
[66656] Fix | Delete
blockName,
[66657] Fix | Delete
clientId,
[66658] Fix | Delete
hasBlockStyles,
[66659] Fix | Delete
tabs
[66660] Fix | Delete
}) {
[66661] Fix | Delete
const showIconLabels = (0,external_wp_data_namespaceObject.useSelect)(select => {
[66662] Fix | Delete
return select(external_wp_preferences_namespaceObject.store).get('core', 'showIconLabels');
[66663] Fix | Delete
}, []);
[66664] Fix | Delete
[66665] Fix | Delete
// The tabs panel will mount before fills are rendered to the list view
[66666] Fix | Delete
// slot. This means the list view tab isn't initially included in the
[66667] Fix | Delete
// available tabs so the panel defaults selection to the settings tab
[66668] Fix | Delete
// which at the time is the first tab. This check allows blocks known to
[66669] Fix | Delete
// include the list view tab to set it as the tab selected by default.
[66670] Fix | Delete
const initialTabName = !use_is_list_view_tab_disabled(blockName) ? TAB_LIST_VIEW.name : undefined;
[66671] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
[66672] Fix | Delete
className: "block-editor-block-inspector__tabs",
[66673] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(inspector_controls_tabs_Tabs, {
[66674] Fix | Delete
defaultTabId: initialTabName,
[66675] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls_tabs_Tabs.TabList, {
[66676] Fix | Delete
children: tabs.map(tab => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls_tabs_Tabs.Tab, {
[66677] Fix | Delete
tabId: tab.name,
[66678] Fix | Delete
render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
[66679] Fix | Delete
icon: !showIconLabels ? tab.icon : undefined,
[66680] Fix | Delete
label: !showIconLabels ? tab.title : undefined,
[66681] Fix | Delete
className: tab.className,
[66682] Fix | Delete
children: showIconLabels && tab.title
[66683] Fix | Delete
})
[66684] Fix | Delete
}, tab.name))
[66685] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls_tabs_Tabs.TabPanel, {
[66686] Fix | Delete
tabId: TAB_SETTINGS.name,
[66687] Fix | Delete
focusable: false,
[66688] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(settings_tab, {
[66689] Fix | Delete
showAdvancedControls: !!blockName
[66690] Fix | Delete
})
[66691] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls_tabs_Tabs.TabPanel, {
[66692] Fix | Delete
tabId: TAB_STYLES.name,
[66693] Fix | Delete
focusable: false,
[66694] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(styles_tab, {
[66695] Fix | Delete
blockName: blockName,
[66696] Fix | Delete
clientId: clientId,
[66697] Fix | Delete
hasBlockStyles: hasBlockStyles
[66698] Fix | Delete
})
[66699] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls_tabs_Tabs.TabPanel, {
[66700] Fix | Delete
tabId: TAB_LIST_VIEW.name,
[66701] Fix | Delete
focusable: false,
[66702] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inspector_controls.Slot, {
[66703] Fix | Delete
group: "list"
[66704] Fix | Delete
})
[66705] Fix | Delete
})]
[66706] Fix | Delete
}, clientId)
[66707] Fix | Delete
});
[66708] Fix | Delete
}
[66709] Fix | Delete
[66710] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-controls-tabs/use-inspector-controls-tabs.js
[66711] Fix | Delete
/**
[66712] Fix | Delete
* WordPress dependencies
[66713] Fix | Delete
*/
[66714] Fix | Delete
[66715] Fix | Delete
[66716] Fix | Delete
[66717] Fix | Delete
/**
[66718] Fix | Delete
* Internal dependencies
[66719] Fix | Delete
*/
[66720] Fix | Delete
[66721] Fix | Delete
[66722] Fix | Delete
[66723] Fix | Delete
[66724] Fix | Delete
[66725] Fix | Delete
const use_inspector_controls_tabs_EMPTY_ARRAY = [];
[66726] Fix | Delete
function getShowTabs(blockName, tabSettings = {}) {
[66727] Fix | Delete
// Block specific setting takes precedence over generic default.
[66728] Fix | Delete
if (tabSettings[blockName] !== undefined) {
[66729] Fix | Delete
return tabSettings[blockName];
[66730] Fix | Delete
}
[66731] Fix | Delete
[66732] Fix | Delete
// Use generic default if set over the Gutenberg experiment option.
[66733] Fix | Delete
if (tabSettings.default !== undefined) {
[66734] Fix | Delete
return tabSettings.default;
[66735] Fix | Delete
}
[66736] Fix | Delete
return true;
[66737] Fix | Delete
}
[66738] Fix | Delete
function useInspectorControlsTabs(blockName) {
[66739] Fix | Delete
const tabs = [];
[66740] Fix | Delete
const {
[66741] Fix | Delete
border: borderGroup,
[66742] Fix | Delete
color: colorGroup,
[66743] Fix | Delete
default: defaultGroup,
[66744] Fix | Delete
dimensions: dimensionsGroup,
[66745] Fix | Delete
list: listGroup,
[66746] Fix | Delete
position: positionGroup,
[66747] Fix | Delete
styles: stylesGroup,
[66748] Fix | Delete
typography: typographyGroup,
[66749] Fix | Delete
effects: effectsGroup
[66750] Fix | Delete
} = inspector_controls_groups;
[66751] Fix | Delete
[66752] Fix | Delete
// List View Tab: If there are any fills for the list group add that tab.
[66753] Fix | Delete
const listViewDisabled = use_is_list_view_tab_disabled(blockName);
[66754] Fix | Delete
const listFills = (0,external_wp_components_namespaceObject.__experimentalUseSlotFills)(listGroup.Slot.__unstableName);
[66755] Fix | Delete
const hasListFills = !listViewDisabled && !!listFills && listFills.length;
[66756] Fix | Delete
[66757] Fix | Delete
// Styles Tab: Add this tab if there are any fills for block supports
[66758] Fix | Delete
// e.g. border, color, spacing, typography, etc.
[66759] Fix | Delete
const styleFills = [...((0,external_wp_components_namespaceObject.__experimentalUseSlotFills)(borderGroup.Slot.__unstableName) || []), ...((0,external_wp_components_namespaceObject.__experimentalUseSlotFills)(colorGroup.Slot.__unstableName) || []), ...((0,external_wp_components_namespaceObject.__experimentalUseSlotFills)(dimensionsGroup.Slot.__unstableName) || []), ...((0,external_wp_components_namespaceObject.__experimentalUseSlotFills)(stylesGroup.Slot.__unstableName) || []), ...((0,external_wp_components_namespaceObject.__experimentalUseSlotFills)(typographyGroup.Slot.__unstableName) || []), ...((0,external_wp_components_namespaceObject.__experimentalUseSlotFills)(effectsGroup.Slot.__unstableName) || [])];
[66760] Fix | Delete
const hasStyleFills = styleFills.length;
[66761] Fix | Delete
[66762] Fix | Delete
// Settings Tab: If we don't have multiple tabs to display
[66763] Fix | Delete
// (i.e. both list view and styles), check only the default and position
[66764] Fix | Delete
// InspectorControls slots. If we have multiple tabs, we'll need to check
[66765] Fix | Delete
// the advanced controls slot as well to ensure they are rendered.
[66766] Fix | Delete
const advancedFills = (0,external_wp_components_namespaceObject.__experimentalUseSlotFills)(InspectorAdvancedControls.slotName) || [];
[66767] Fix | Delete
const settingsFills = [...((0,external_wp_components_namespaceObject.__experimentalUseSlotFills)(defaultGroup.Slot.__unstableName) || []), ...((0,external_wp_components_namespaceObject.__experimentalUseSlotFills)(positionGroup.Slot.__unstableName) || []), ...(hasListFills && hasStyleFills > 1 ? advancedFills : [])];
[66768] Fix | Delete
[66769] Fix | Delete
// Add the tabs in the order that they will default to if available.
[66770] Fix | Delete
// List View > Settings > Styles.
[66771] Fix | Delete
if (hasListFills) {
[66772] Fix | Delete
tabs.push(TAB_LIST_VIEW);
[66773] Fix | Delete
}
[66774] Fix | Delete
if (settingsFills.length) {
[66775] Fix | Delete
tabs.push(TAB_SETTINGS);
[66776] Fix | Delete
}
[66777] Fix | Delete
if (hasStyleFills) {
[66778] Fix | Delete
tabs.push(TAB_STYLES);
[66779] Fix | Delete
}
[66780] Fix | Delete
const tabSettings = (0,external_wp_data_namespaceObject.useSelect)(select => {
[66781] Fix | Delete
return select(store).getSettings().blockInspectorTabs;
[66782] Fix | Delete
}, []);
[66783] Fix | Delete
const showTabs = getShowTabs(blockName, tabSettings);
[66784] Fix | Delete
return showTabs ? tabs : use_inspector_controls_tabs_EMPTY_ARRAY;
[66785] Fix | Delete
}
[66786] Fix | Delete
[66787] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-inspector/useBlockInspectorAnimationSettings.js
[66788] Fix | Delete
/**
[66789] Fix | Delete
* WordPress dependencies
[66790] Fix | Delete
*/
[66791] Fix | Delete
[66792] Fix | Delete
[66793] Fix | Delete
/**
[66794] Fix | Delete
* Internal dependencies
[66795] Fix | Delete
*/
[66796] Fix | Delete
[66797] Fix | Delete
function useBlockInspectorAnimationSettings(blockType) {
[66798] Fix | Delete
return (0,external_wp_data_namespaceObject.useSelect)(select => {
[66799] Fix | Delete
if (blockType) {
[66800] Fix | Delete
const globalBlockInspectorAnimationSettings = select(store).getSettings().blockInspectorAnimation;
[66801] Fix | Delete
[66802] Fix | Delete
// Get the name of the block that will allow it's children to be animated.
[66803] Fix | Delete
const animationParent = globalBlockInspectorAnimationSettings?.animationParent;
[66804] Fix | Delete
[66805] Fix | Delete
// Determine whether the animationParent block is a parent of the selected block.
[66806] Fix | Delete
const {
[66807] Fix | Delete
getSelectedBlockClientId,
[66808] Fix | Delete
getBlockParentsByBlockName
[66809] Fix | Delete
} = select(store);
[66810] Fix | Delete
const _selectedBlockClientId = getSelectedBlockClientId();
[66811] Fix | Delete
const animationParentBlockClientId = getBlockParentsByBlockName(_selectedBlockClientId, animationParent, true)[0];
[66812] Fix | Delete
[66813] Fix | Delete
// If the selected block is not a child of the animationParent block,
[66814] Fix | Delete
// and not an animationParent block itself, don't animate.
[66815] Fix | Delete
if (!animationParentBlockClientId && blockType.name !== animationParent) {
[66816] Fix | Delete
return null;
[66817] Fix | Delete
}
[66818] Fix | Delete
return globalBlockInspectorAnimationSettings?.[blockType.name];
[66819] Fix | Delete
}
[66820] Fix | Delete
return null;
[66821] Fix | Delete
}, [blockType]);
[66822] Fix | Delete
}
[66823] Fix | Delete
[66824] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-info-slot-fill/index.js
[66825] Fix | Delete
/**
[66826] Fix | Delete
* WordPress dependencies
[66827] Fix | Delete
*/
[66828] Fix | Delete
[66829] Fix | Delete
[66830] Fix | Delete
/**
[66831] Fix | Delete
* Internal dependencies
[66832] Fix | Delete
*/
[66833] Fix | Delete
[66834] Fix | Delete
[66835] Fix | Delete
[66836] Fix | Delete
const {
[66837] Fix | Delete
createPrivateSlotFill
[66838] Fix | Delete
} = unlock(external_wp_components_namespaceObject.privateApis);
[66839] Fix | Delete
const {
[66840] Fix | Delete
Fill: block_info_slot_fill_Fill,
[66841] Fix | Delete
Slot: block_info_slot_fill_Slot
[66842] Fix | Delete
} = createPrivateSlotFill('BlockInformation');
[66843] Fix | Delete
const BlockInfo = props => {
[66844] Fix | Delete
const context = useBlockEditContext();
[66845] Fix | Delete
if (!context[mayDisplayControlsKey]) {
[66846] Fix | Delete
return null;
[66847] Fix | Delete
}
[66848] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_info_slot_fill_Fill, {
[66849] Fix | Delete
...props
[66850] Fix | Delete
});
[66851] Fix | Delete
};
[66852] Fix | Delete
BlockInfo.Slot = props => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_info_slot_fill_Slot, {
[66853] Fix | Delete
...props
[66854] Fix | Delete
});
[66855] Fix | Delete
/* harmony default export */ const block_info_slot_fill = (BlockInfo);
[66856] Fix | Delete
[66857] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-quick-navigation/index.js
[66858] Fix | Delete
/**
[66859] Fix | Delete
* WordPress dependencies
[66860] Fix | Delete
*/
[66861] Fix | Delete
[66862] Fix | Delete
[66863] Fix | Delete
[66864] Fix | Delete
[66865] Fix | Delete
/**
[66866] Fix | Delete
* Internal dependencies
[66867] Fix | Delete
*/
[66868] Fix | Delete
[66869] Fix | Delete
[66870] Fix | Delete
[66871] Fix | Delete
[66872] Fix | Delete
function BlockQuickNavigation({
[66873] Fix | Delete
clientIds
[66874] Fix | Delete
}) {
[66875] Fix | Delete
if (!clientIds.length) {
[66876] Fix | Delete
return null;
[66877] Fix | Delete
}
[66878] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalVStack, {
[66879] Fix | Delete
spacing: 1,
[66880] Fix | Delete
children: clientIds.map(clientId => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockQuickNavigationItem, {
[66881] Fix | Delete
clientId: clientId
[66882] Fix | Delete
}, clientId))
[66883] Fix | Delete
});
[66884] Fix | Delete
}
[66885] Fix | Delete
function BlockQuickNavigationItem({
[66886] Fix | Delete
clientId
[66887] Fix | Delete
}) {
[66888] Fix | Delete
const {
[66889] Fix | Delete
name,
[66890] Fix | Delete
icon,
[66891] Fix | Delete
isSelected
[66892] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
[66893] Fix | Delete
const {
[66894] Fix | Delete
getBlockName,
[66895] Fix | Delete
getBlockAttributes,
[66896] Fix | Delete
isBlockSelected,
[66897] Fix | Delete
hasSelectedInnerBlock
[66898] Fix | Delete
} = select(store);
[66899] Fix | Delete
const {
[66900] Fix | Delete
getBlockType
[66901] Fix | Delete
} = select(external_wp_blocks_namespaceObject.store);
[66902] Fix | Delete
const blockType = getBlockType(getBlockName(clientId));
[66903] Fix | Delete
const attributes = getBlockAttributes(clientId);
[66904] Fix | Delete
return {
[66905] Fix | Delete
name: blockType && (0,external_wp_blocks_namespaceObject.__experimentalGetBlockLabel)(blockType, attributes, 'list-view'),
[66906] Fix | Delete
icon: blockType?.icon,
[66907] Fix | Delete
isSelected: isBlockSelected(clientId) || hasSelectedInnerBlock(clientId, /* deep: */true)
[66908] Fix | Delete
};
[66909] Fix | Delete
}, [clientId]);
[66910] Fix | Delete
const {
[66911] Fix | Delete
selectBlock
[66912] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
[66913] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
[66914] Fix | Delete
isPressed: isSelected,
[66915] Fix | Delete
onClick: () => selectBlock(clientId),
[66916] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Flex, {
[66917] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
[66918] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_icon, {
[66919] Fix | Delete
icon: icon
[66920] Fix | Delete
})
[66921] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexBlock, {
[66922] Fix | Delete
style: {
[66923] Fix | Delete
textAlign: 'left'
[66924] Fix | Delete
},
[66925] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalTruncate, {
[66926] Fix | Delete
children: name
[66927] Fix | Delete
})
[66928] Fix | Delete
})]
[66929] Fix | Delete
})
[66930] Fix | Delete
});
[66931] Fix | Delete
}
[66932] Fix | Delete
[66933] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-inspector/index.js
[66934] Fix | Delete
/**
[66935] Fix | Delete
* WordPress dependencies
[66936] Fix | Delete
*/
[66937] Fix | Delete
[66938] Fix | Delete
[66939] Fix | Delete
[66940] Fix | Delete
[66941] Fix | Delete
[66942] Fix | Delete
/**
[66943] Fix | Delete
* Internal dependencies
[66944] Fix | Delete
*/
[66945] Fix | Delete
[66946] Fix | Delete
[66947] Fix | Delete
[66948] Fix | Delete
[66949] Fix | Delete
[66950] Fix | Delete
[66951] Fix | Delete
[66952] Fix | Delete
[66953] Fix | Delete
[66954] Fix | Delete
[66955] Fix | Delete
[66956] Fix | Delete
[66957] Fix | Delete
[66958] Fix | Delete
[66959] Fix | Delete
[66960] Fix | Delete
[66961] Fix | Delete
[66962] Fix | Delete
[66963] Fix | Delete
[66964] Fix | Delete
[66965] Fix | Delete
function BlockInspectorLockedBlocks({
[66966] Fix | Delete
topLevelLockedBlock
[66967] Fix | Delete
}) {
[66968] Fix | Delete
const contentClientIds = (0,external_wp_data_namespaceObject.useSelect)(select => {
[66969] Fix | Delete
const {
[66970] Fix | Delete
getClientIdsOfDescendants,
[66971] Fix | Delete
getBlockName,
[66972] Fix | Delete
getBlockEditingMode
[66973] Fix | Delete
} = select(store);
[66974] Fix | Delete
return getClientIdsOfDescendants(topLevelLockedBlock).filter(clientId => getBlockName(clientId) !== 'core/list-item' && getBlockEditingMode(clientId) === 'contentOnly');
[66975] Fix | Delete
}, [topLevelLockedBlock]);
[66976] Fix | Delete
const blockInformation = useBlockDisplayInformation(topLevelLockedBlock);
[66977] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
[66978] Fix | Delete
className: "block-editor-block-inspector",
[66979] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_card, {
[66980] Fix | Delete
...blockInformation,
[66981] Fix | Delete
className: blockInformation.isSynced && 'is-synced'
[66982] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_variation_transforms, {
[66983] Fix | Delete
blockClientId: topLevelLockedBlock
[66984] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_info_slot_fill.Slot, {}), contentClientIds.length > 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
[66985] Fix | Delete
title: (0,external_wp_i18n_namespaceObject.__)('Content'),
[66986] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockQuickNavigation, {
[66987] Fix | Delete
clientIds: contentClientIds
[66988] Fix | Delete
})
[66989] Fix | Delete
})]
[66990] Fix | Delete
});
[66991] Fix | Delete
}
[66992] Fix | Delete
const BlockInspector = ({
[66993] Fix | Delete
showNoBlockSelectedMessage = true
[66994] Fix | Delete
}) => {
[66995] Fix | Delete
const {
[66996] Fix | Delete
count,
[66997] Fix | Delete
selectedBlockName,
[66998] Fix | Delete
selectedBlockClientId,
[66999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function