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
const block_settings_dropdown_POPOVER_PROPS = {
[54000] Fix | Delete
className: 'block-editor-block-settings-menu__popover',
[54001] Fix | Delete
placement: 'bottom-start'
[54002] Fix | Delete
};
[54003] Fix | Delete
function CopyMenuItem({
[54004] Fix | Delete
clientIds,
[54005] Fix | Delete
onCopy,
[54006] Fix | Delete
label,
[54007] Fix | Delete
shortcut
[54008] Fix | Delete
}) {
[54009] Fix | Delete
const {
[54010] Fix | Delete
getBlocksByClientId
[54011] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(store);
[54012] Fix | Delete
const ref = (0,external_wp_compose_namespaceObject.useCopyToClipboard)(() => (0,external_wp_blocks_namespaceObject.serialize)(getBlocksByClientId(clientIds)), onCopy);
[54013] Fix | Delete
const copyMenuItemLabel = label ? label : (0,external_wp_i18n_namespaceObject.__)('Copy');
[54014] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
[54015] Fix | Delete
ref: ref,
[54016] Fix | Delete
shortcut: shortcut,
[54017] Fix | Delete
children: copyMenuItemLabel
[54018] Fix | Delete
});
[54019] Fix | Delete
}
[54020] Fix | Delete
function BlockSettingsDropdown({
[54021] Fix | Delete
block,
[54022] Fix | Delete
clientIds,
[54023] Fix | Delete
children,
[54024] Fix | Delete
__experimentalSelectBlock,
[54025] Fix | Delete
...props
[54026] Fix | Delete
}) {
[54027] Fix | Delete
// Get the client id of the current block for this menu, if one is set.
[54028] Fix | Delete
const currentClientId = block?.clientId;
[54029] Fix | Delete
const count = clientIds.length;
[54030] Fix | Delete
const firstBlockClientId = clientIds[0];
[54031] Fix | Delete
const {
[54032] Fix | Delete
firstParentClientId,
[54033] Fix | Delete
onlyBlock,
[54034] Fix | Delete
parentBlockType,
[54035] Fix | Delete
previousBlockClientId,
[54036] Fix | Delete
selectedBlockClientIds,
[54037] Fix | Delete
openedBlockSettingsMenu,
[54038] Fix | Delete
isContentOnly
[54039] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
[54040] Fix | Delete
const {
[54041] Fix | Delete
getBlockCount,
[54042] Fix | Delete
getBlockName,
[54043] Fix | Delete
getBlockRootClientId,
[54044] Fix | Delete
getPreviousBlockClientId,
[54045] Fix | Delete
getSelectedBlockClientIds,
[54046] Fix | Delete
getBlockAttributes,
[54047] Fix | Delete
getOpenedBlockSettingsMenu,
[54048] Fix | Delete
getBlockEditingMode
[54049] Fix | Delete
} = unlock(select(store));
[54050] Fix | Delete
const {
[54051] Fix | Delete
getActiveBlockVariation
[54052] Fix | Delete
} = select(external_wp_blocks_namespaceObject.store);
[54053] Fix | Delete
const _firstParentClientId = getBlockRootClientId(firstBlockClientId);
[54054] Fix | Delete
const parentBlockName = _firstParentClientId && getBlockName(_firstParentClientId);
[54055] Fix | Delete
return {
[54056] Fix | Delete
firstParentClientId: _firstParentClientId,
[54057] Fix | Delete
onlyBlock: 1 === getBlockCount(_firstParentClientId),
[54058] Fix | Delete
parentBlockType: _firstParentClientId && (getActiveBlockVariation(parentBlockName, getBlockAttributes(_firstParentClientId)) || (0,external_wp_blocks_namespaceObject.getBlockType)(parentBlockName)),
[54059] Fix | Delete
previousBlockClientId: getPreviousBlockClientId(firstBlockClientId),
[54060] Fix | Delete
selectedBlockClientIds: getSelectedBlockClientIds(),
[54061] Fix | Delete
openedBlockSettingsMenu: getOpenedBlockSettingsMenu(),
[54062] Fix | Delete
isContentOnly: getBlockEditingMode(firstBlockClientId) === 'contentOnly'
[54063] Fix | Delete
};
[54064] Fix | Delete
}, [firstBlockClientId]);
[54065] Fix | Delete
const {
[54066] Fix | Delete
getBlockOrder,
[54067] Fix | Delete
getSelectedBlockClientIds
[54068] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(store);
[54069] Fix | Delete
const {
[54070] Fix | Delete
setOpenedBlockSettingsMenu
[54071] Fix | Delete
} = unlock((0,external_wp_data_namespaceObject.useDispatch)(store));
[54072] Fix | Delete
const shortcuts = (0,external_wp_data_namespaceObject.useSelect)(select => {
[54073] Fix | Delete
const {
[54074] Fix | Delete
getShortcutRepresentation
[54075] Fix | Delete
} = select(external_wp_keyboardShortcuts_namespaceObject.store);
[54076] Fix | Delete
return {
[54077] Fix | Delete
duplicate: getShortcutRepresentation('core/block-editor/duplicate'),
[54078] Fix | Delete
remove: getShortcutRepresentation('core/block-editor/remove'),
[54079] Fix | Delete
insertAfter: getShortcutRepresentation('core/block-editor/insert-after'),
[54080] Fix | Delete
insertBefore: getShortcutRepresentation('core/block-editor/insert-before')
[54081] Fix | Delete
};
[54082] Fix | Delete
}, []);
[54083] Fix | Delete
const hasSelectedBlocks = selectedBlockClientIds.length > 0;
[54084] Fix | Delete
async function updateSelectionAfterDuplicate(clientIdsPromise) {
[54085] Fix | Delete
if (!__experimentalSelectBlock) {
[54086] Fix | Delete
return;
[54087] Fix | Delete
}
[54088] Fix | Delete
const ids = await clientIdsPromise;
[54089] Fix | Delete
if (ids && ids[0]) {
[54090] Fix | Delete
__experimentalSelectBlock(ids[0], false);
[54091] Fix | Delete
}
[54092] Fix | Delete
}
[54093] Fix | Delete
function updateSelectionAfterRemove() {
[54094] Fix | Delete
if (!__experimentalSelectBlock) {
[54095] Fix | Delete
return;
[54096] Fix | Delete
}
[54097] Fix | Delete
let blockToFocus = previousBlockClientId || firstParentClientId;
[54098] Fix | Delete
[54099] Fix | Delete
// Focus the first block if there's no previous block nor parent block.
[54100] Fix | Delete
if (!blockToFocus) {
[54101] Fix | Delete
blockToFocus = getBlockOrder()[0];
[54102] Fix | Delete
}
[54103] Fix | Delete
[54104] Fix | Delete
// Only update the selection if the original selection is removed.
[54105] Fix | Delete
const shouldUpdateSelection = hasSelectedBlocks && getSelectedBlockClientIds().length === 0;
[54106] Fix | Delete
__experimentalSelectBlock(blockToFocus, shouldUpdateSelection);
[54107] Fix | Delete
}
[54108] Fix | Delete
[54109] Fix | Delete
// This can occur when the selected block (the parent)
[54110] Fix | Delete
// displays child blocks within a List View.
[54111] Fix | Delete
const parentBlockIsSelected = selectedBlockClientIds?.includes(firstParentClientId);
[54112] Fix | Delete
[54113] Fix | Delete
// When a currentClientId is in use, treat the menu as a controlled component.
[54114] Fix | Delete
// This ensures that only one block settings menu is open at a time.
[54115] Fix | Delete
// This is a temporary solution to work around an issue with `onFocusOutside`
[54116] Fix | Delete
// where it does not allow a dropdown to be closed if focus was never within
[54117] Fix | Delete
// the dropdown to begin with. Examples include a user either CMD+Clicking or
[54118] Fix | Delete
// right clicking into an inactive window.
[54119] Fix | Delete
// See: https://github.com/WordPress/gutenberg/pull/54083
[54120] Fix | Delete
const open = !currentClientId ? undefined : openedBlockSettingsMenu === currentClientId || false;
[54121] Fix | Delete
function onToggle(localOpen) {
[54122] Fix | Delete
if (localOpen && openedBlockSettingsMenu !== currentClientId) {
[54123] Fix | Delete
setOpenedBlockSettingsMenu(currentClientId);
[54124] Fix | Delete
} else if (!localOpen && openedBlockSettingsMenu && openedBlockSettingsMenu === currentClientId) {
[54125] Fix | Delete
setOpenedBlockSettingsMenu(undefined);
[54126] Fix | Delete
}
[54127] Fix | Delete
}
[54128] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockActions, {
[54129] Fix | Delete
clientIds: clientIds,
[54130] Fix | Delete
__experimentalUpdateSelection: !__experimentalSelectBlock,
[54131] Fix | Delete
children: ({
[54132] Fix | Delete
canCopyStyles,
[54133] Fix | Delete
canDuplicate,
[54134] Fix | Delete
canInsertBlock,
[54135] Fix | Delete
canMove,
[54136] Fix | Delete
canRemove,
[54137] Fix | Delete
onDuplicate,
[54138] Fix | Delete
onInsertAfter,
[54139] Fix | Delete
onInsertBefore,
[54140] Fix | Delete
onRemove,
[54141] Fix | Delete
onCopy,
[54142] Fix | Delete
onPasteStyles,
[54143] Fix | Delete
onMoveTo
[54144] Fix | Delete
}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropdownMenu, {
[54145] Fix | Delete
icon: more_vertical,
[54146] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Options'),
[54147] Fix | Delete
className: "block-editor-block-settings-menu",
[54148] Fix | Delete
popoverProps: block_settings_dropdown_POPOVER_PROPS,
[54149] Fix | Delete
open: open,
[54150] Fix | Delete
onToggle: onToggle,
[54151] Fix | Delete
noIcons: true,
[54152] Fix | Delete
...props,
[54153] Fix | Delete
children: ({
[54154] Fix | Delete
onClose
[54155] Fix | Delete
}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[54156] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.MenuGroup, {
[54157] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_settings_menu_first_item.Slot, {
[54158] Fix | Delete
fillProps: {
[54159] Fix | Delete
onClose
[54160] Fix | Delete
}
[54161] Fix | Delete
}), !parentBlockIsSelected && !!firstParentClientId && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockParentSelectorMenuItem, {
[54162] Fix | Delete
parentClientId: firstParentClientId,
[54163] Fix | Delete
parentBlockType: parentBlockType
[54164] Fix | Delete
}), count === 1 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_html_convert_button, {
[54165] Fix | Delete
clientId: firstBlockClientId
[54166] Fix | Delete
}), !isContentOnly && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CopyMenuItem, {
[54167] Fix | Delete
clientIds: clientIds,
[54168] Fix | Delete
onCopy: onCopy,
[54169] Fix | Delete
shortcut: external_wp_keycodes_namespaceObject.displayShortcut.primary('c')
[54170] Fix | Delete
}), canDuplicate && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
[54171] Fix | Delete
onClick: (0,external_wp_compose_namespaceObject.pipe)(onClose, onDuplicate, updateSelectionAfterDuplicate),
[54172] Fix | Delete
shortcut: shortcuts.duplicate,
[54173] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Duplicate')
[54174] Fix | Delete
}), canInsertBlock && !isContentOnly && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[54175] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
[54176] Fix | Delete
onClick: (0,external_wp_compose_namespaceObject.pipe)(onClose, onInsertBefore),
[54177] Fix | Delete
shortcut: shortcuts.insertBefore,
[54178] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Add before')
[54179] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
[54180] Fix | Delete
onClick: (0,external_wp_compose_namespaceObject.pipe)(onClose, onInsertAfter),
[54181] Fix | Delete
shortcut: shortcuts.insertAfter,
[54182] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Add after')
[54183] Fix | Delete
})]
[54184] Fix | Delete
})]
[54185] Fix | Delete
}), canCopyStyles && !isContentOnly && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.MenuGroup, {
[54186] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CopyMenuItem, {
[54187] Fix | Delete
clientIds: clientIds,
[54188] Fix | Delete
onCopy: onCopy,
[54189] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Copy styles')
[54190] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
[54191] Fix | Delete
onClick: onPasteStyles,
[54192] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Paste styles')
[54193] Fix | Delete
})]
[54194] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_settings_menu_controls.Slot, {
[54195] Fix | Delete
fillProps: {
[54196] Fix | Delete
onClose,
[54197] Fix | Delete
canMove,
[54198] Fix | Delete
onMoveTo,
[54199] Fix | Delete
onlyBlock,
[54200] Fix | Delete
count,
[54201] Fix | Delete
firstBlockClientId
[54202] Fix | Delete
},
[54203] Fix | Delete
clientIds: clientIds
[54204] Fix | Delete
}), typeof children === 'function' ? children({
[54205] Fix | Delete
onClose
[54206] Fix | Delete
}) : external_wp_element_namespaceObject.Children.map(child => (0,external_wp_element_namespaceObject.cloneElement)(child, {
[54207] Fix | Delete
onClose
[54208] Fix | Delete
})), canRemove && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
[54209] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
[54210] Fix | Delete
onClick: (0,external_wp_compose_namespaceObject.pipe)(onClose, onRemove, updateSelectionAfterRemove),
[54211] Fix | Delete
shortcut: shortcuts.remove,
[54212] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Delete')
[54213] Fix | Delete
})
[54214] Fix | Delete
})]
[54215] Fix | Delete
})
[54216] Fix | Delete
})
[54217] Fix | Delete
});
[54218] Fix | Delete
}
[54219] Fix | Delete
/* harmony default export */ const block_settings_dropdown = (BlockSettingsDropdown);
[54220] Fix | Delete
[54221] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu/index.js
[54222] Fix | Delete
/**
[54223] Fix | Delete
* WordPress dependencies
[54224] Fix | Delete
*/
[54225] Fix | Delete
[54226] Fix | Delete
[54227] Fix | Delete
/**
[54228] Fix | Delete
* Internal dependencies
[54229] Fix | Delete
*/
[54230] Fix | Delete
[54231] Fix | Delete
[54232] Fix | Delete
function BlockSettingsMenu({
[54233] Fix | Delete
clientIds,
[54234] Fix | Delete
...props
[54235] Fix | Delete
}) {
[54236] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
[54237] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarItem, {
[54238] Fix | Delete
children: toggleProps => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_settings_dropdown, {
[54239] Fix | Delete
clientIds: clientIds,
[54240] Fix | Delete
toggleProps: toggleProps,
[54241] Fix | Delete
...props
[54242] Fix | Delete
})
[54243] Fix | Delete
})
[54244] Fix | Delete
});
[54245] Fix | Delete
}
[54246] Fix | Delete
/* harmony default export */ const block_settings_menu = (BlockSettingsMenu);
[54247] Fix | Delete
[54248] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-lock/toolbar.js
[54249] Fix | Delete
/**
[54250] Fix | Delete
* WordPress dependencies
[54251] Fix | Delete
*/
[54252] Fix | Delete
[54253] Fix | Delete
[54254] Fix | Delete
[54255] Fix | Delete
[54256] Fix | Delete
[54257] Fix | Delete
/**
[54258] Fix | Delete
* Internal dependencies
[54259] Fix | Delete
*/
[54260] Fix | Delete
[54261] Fix | Delete
[54262] Fix | Delete
[54263] Fix | Delete
[54264] Fix | Delete
[54265] Fix | Delete
function BlockLockToolbar({
[54266] Fix | Delete
clientId
[54267] Fix | Delete
}) {
[54268] Fix | Delete
const {
[54269] Fix | Delete
canLock,
[54270] Fix | Delete
isLocked
[54271] Fix | Delete
} = useBlockLock(clientId);
[54272] Fix | Delete
const [isModalOpen, toggleModal] = (0,external_wp_element_namespaceObject.useReducer)(isActive => !isActive, false);
[54273] Fix | Delete
const hasLockButtonShown = (0,external_wp_element_namespaceObject.useRef)(false);
[54274] Fix | Delete
[54275] Fix | Delete
// If the block lock button has been shown, we don't want to remove it
[54276] Fix | Delete
// from the toolbar until the toolbar is rendered again without it.
[54277] Fix | Delete
// Removing it beforehand can cause focus loss issues, such as when
[54278] Fix | Delete
// unlocking the block from the modal. It needs to return focus from
[54279] Fix | Delete
// whence it came, and to do that, we need to leave the button in the toolbar.
[54280] Fix | Delete
(0,external_wp_element_namespaceObject.useEffect)(() => {
[54281] Fix | Delete
if (isLocked) {
[54282] Fix | Delete
hasLockButtonShown.current = true;
[54283] Fix | Delete
}
[54284] Fix | Delete
}, [isLocked]);
[54285] Fix | Delete
if (!isLocked && !hasLockButtonShown.current) {
[54286] Fix | Delete
return null;
[54287] Fix | Delete
}
[54288] Fix | Delete
let label = isLocked ? (0,external_wp_i18n_namespaceObject.__)('Unlock') : (0,external_wp_i18n_namespaceObject.__)('Lock');
[54289] Fix | Delete
if (!canLock && isLocked) {
[54290] Fix | Delete
label = (0,external_wp_i18n_namespaceObject.__)('Locked');
[54291] Fix | Delete
}
[54292] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[54293] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
[54294] Fix | Delete
className: "block-editor-block-lock-toolbar",
[54295] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
[54296] Fix | Delete
accessibleWhenDisabled: true,
[54297] Fix | Delete
disabled: !canLock,
[54298] Fix | Delete
icon: isLocked ? library_lock : library_unlock,
[54299] Fix | Delete
label: label,
[54300] Fix | Delete
onClick: toggleModal,
[54301] Fix | Delete
"aria-expanded": isModalOpen,
[54302] Fix | Delete
"aria-haspopup": "dialog"
[54303] Fix | Delete
})
[54304] Fix | Delete
}), isModalOpen && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockLockModal, {
[54305] Fix | Delete
clientId: clientId,
[54306] Fix | Delete
onClose: toggleModal
[54307] Fix | Delete
})]
[54308] Fix | Delete
});
[54309] Fix | Delete
}
[54310] Fix | Delete
[54311] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/group.js
[54312] Fix | Delete
/**
[54313] Fix | Delete
* WordPress dependencies
[54314] Fix | Delete
*/
[54315] Fix | Delete
[54316] Fix | Delete
[54317] Fix | Delete
const group_group = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[54318] Fix | Delete
viewBox: "0 0 24 24",
[54319] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[54320] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[54321] Fix | Delete
d: "M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"
[54322] Fix | Delete
})
[54323] Fix | Delete
});
[54324] Fix | Delete
/* harmony default export */ const library_group = (group_group);
[54325] Fix | Delete
[54326] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/row.js
[54327] Fix | Delete
/**
[54328] Fix | Delete
* WordPress dependencies
[54329] Fix | Delete
*/
[54330] Fix | Delete
[54331] Fix | Delete
[54332] Fix | Delete
const row = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[54333] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[54334] Fix | Delete
viewBox: "0 0 24 24",
[54335] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[54336] Fix | Delete
d: "M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z"
[54337] Fix | Delete
})
[54338] Fix | Delete
});
[54339] Fix | Delete
/* harmony default export */ const library_row = (row);
[54340] Fix | Delete
[54341] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/stack.js
[54342] Fix | Delete
/**
[54343] Fix | Delete
* WordPress dependencies
[54344] Fix | Delete
*/
[54345] Fix | Delete
[54346] Fix | Delete
[54347] Fix | Delete
const stack = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[54348] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[54349] Fix | Delete
viewBox: "0 0 24 24",
[54350] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[54351] Fix | Delete
d: "M17.5 4v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V4H8v5a.5.5 0 0 0 .5.5h7A.5.5 0 0 0 16 9V4h1.5Zm0 16v-5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v5H8v-5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v5h1.5Z"
[54352] Fix | Delete
})
[54353] Fix | Delete
});
[54354] Fix | Delete
/* harmony default export */ const library_stack = (stack);
[54355] Fix | Delete
[54356] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/grid.js
[54357] Fix | Delete
/**
[54358] Fix | Delete
* WordPress dependencies
[54359] Fix | Delete
*/
[54360] Fix | Delete
[54361] Fix | Delete
[54362] Fix | Delete
const grid_grid = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[54363] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[54364] Fix | Delete
viewBox: "0 0 24 24",
[54365] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[54366] Fix | Delete
d: "m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",
[54367] Fix | Delete
fillRule: "evenodd",
[54368] Fix | Delete
clipRule: "evenodd"
[54369] Fix | Delete
})
[54370] Fix | Delete
});
[54371] Fix | Delete
/* harmony default export */ const library_grid = (grid_grid);
[54372] Fix | Delete
[54373] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/convert-to-group-buttons/toolbar.js
[54374] Fix | Delete
/**
[54375] Fix | Delete
* WordPress dependencies
[54376] Fix | Delete
*/
[54377] Fix | Delete
[54378] Fix | Delete
[54379] Fix | Delete
[54380] Fix | Delete
[54381] Fix | Delete
[54382] Fix | Delete
[54383] Fix | Delete
/**
[54384] Fix | Delete
* Internal dependencies
[54385] Fix | Delete
*/
[54386] Fix | Delete
[54387] Fix | Delete
[54388] Fix | Delete
[54389] Fix | Delete
[54390] Fix | Delete
const layouts = {
[54391] Fix | Delete
group: {
[54392] Fix | Delete
type: 'constrained'
[54393] Fix | Delete
},
[54394] Fix | Delete
row: {
[54395] Fix | Delete
type: 'flex',
[54396] Fix | Delete
flexWrap: 'nowrap'
[54397] Fix | Delete
},
[54398] Fix | Delete
stack: {
[54399] Fix | Delete
type: 'flex',
[54400] Fix | Delete
orientation: 'vertical'
[54401] Fix | Delete
},
[54402] Fix | Delete
grid: {
[54403] Fix | Delete
type: 'grid'
[54404] Fix | Delete
}
[54405] Fix | Delete
};
[54406] Fix | Delete
function BlockGroupToolbar() {
[54407] Fix | Delete
const {
[54408] Fix | Delete
blocksSelection,
[54409] Fix | Delete
clientIds,
[54410] Fix | Delete
groupingBlockName,
[54411] Fix | Delete
isGroupable
[54412] Fix | Delete
} = useConvertToGroupButtonProps();
[54413] Fix | Delete
const {
[54414] Fix | Delete
replaceBlocks
[54415] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
[54416] Fix | Delete
const {
[54417] Fix | Delete
canRemove,
[54418] Fix | Delete
variations
[54419] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
[54420] Fix | Delete
const {
[54421] Fix | Delete
canRemoveBlocks
[54422] Fix | Delete
} = select(store);
[54423] Fix | Delete
const {
[54424] Fix | Delete
getBlockVariations
[54425] Fix | Delete
} = select(external_wp_blocks_namespaceObject.store);
[54426] Fix | Delete
return {
[54427] Fix | Delete
canRemove: canRemoveBlocks(clientIds),
[54428] Fix | Delete
variations: getBlockVariations(groupingBlockName, 'transform')
[54429] Fix | Delete
};
[54430] Fix | Delete
}, [clientIds, groupingBlockName]);
[54431] Fix | Delete
const onConvertToGroup = layout => {
[54432] Fix | Delete
const newBlocks = (0,external_wp_blocks_namespaceObject.switchToBlockType)(blocksSelection, groupingBlockName);
[54433] Fix | Delete
if (typeof layout !== 'string') {
[54434] Fix | Delete
layout = 'group';
[54435] Fix | Delete
}
[54436] Fix | Delete
if (newBlocks && newBlocks.length > 0) {
[54437] Fix | Delete
// Because the block is not in the store yet we can't use
[54438] Fix | Delete
// updateBlockAttributes so need to manually update attributes.
[54439] Fix | Delete
newBlocks[0].attributes.layout = layouts[layout];
[54440] Fix | Delete
replaceBlocks(clientIds, newBlocks);
[54441] Fix | Delete
}
[54442] Fix | Delete
};
[54443] Fix | Delete
const onConvertToRow = () => onConvertToGroup('row');
[54444] Fix | Delete
const onConvertToStack = () => onConvertToGroup('stack');
[54445] Fix | Delete
const onConvertToGrid = () => onConvertToGroup('grid');
[54446] Fix | Delete
[54447] Fix | Delete
// Don't render the button if the current selection cannot be grouped.
[54448] Fix | Delete
// A good example is selecting multiple button blocks within a Buttons block:
[54449] Fix | Delete
// The group block is not a valid child of Buttons, so we should not show the button.
[54450] Fix | Delete
// Any blocks that are locked against removal also cannot be grouped.
[54451] Fix | Delete
if (!isGroupable || !canRemove) {
[54452] Fix | Delete
return null;
[54453] Fix | Delete
}
[54454] Fix | Delete
const canInsertRow = !!variations.find(({
[54455] Fix | Delete
name
[54456] Fix | Delete
}) => name === 'group-row');
[54457] Fix | Delete
const canInsertStack = !!variations.find(({
[54458] Fix | Delete
name
[54459] Fix | Delete
}) => name === 'group-stack');
[54460] Fix | Delete
const canInsertGrid = !!variations.find(({
[54461] Fix | Delete
name
[54462] Fix | Delete
}) => name === 'group-grid');
[54463] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.ToolbarGroup, {
[54464] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
[54465] Fix | Delete
icon: library_group,
[54466] Fix | Delete
label: (0,external_wp_i18n_namespaceObject._x)('Group', 'verb'),
[54467] Fix | Delete
onClick: onConvertToGroup
[54468] Fix | Delete
}), canInsertRow && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
[54469] Fix | Delete
icon: library_row,
[54470] Fix | Delete
label: (0,external_wp_i18n_namespaceObject._x)('Row', 'single horizontal line'),
[54471] Fix | Delete
onClick: onConvertToRow
[54472] Fix | Delete
}), canInsertStack && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
[54473] Fix | Delete
icon: library_stack,
[54474] Fix | Delete
label: (0,external_wp_i18n_namespaceObject._x)('Stack', 'verb'),
[54475] Fix | Delete
onClick: onConvertToStack
[54476] Fix | Delete
}), canInsertGrid && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
[54477] Fix | Delete
icon: library_grid,
[54478] Fix | Delete
label: (0,external_wp_i18n_namespaceObject._x)('Grid', 'verb'),
[54479] Fix | Delete
onClick: onConvertToGrid
[54480] Fix | Delete
})]
[54481] Fix | Delete
});
[54482] Fix | Delete
}
[54483] Fix | Delete
/* harmony default export */ const toolbar = (BlockGroupToolbar);
[54484] Fix | Delete
[54485] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-edit-visually-button/index.js
[54486] Fix | Delete
/**
[54487] Fix | Delete
* WordPress dependencies
[54488] Fix | Delete
*/
[54489] Fix | Delete
[54490] Fix | Delete
[54491] Fix | Delete
[54492] Fix | Delete
[54493] Fix | Delete
/**
[54494] Fix | Delete
* Internal dependencies
[54495] Fix | Delete
*/
[54496] Fix | Delete
[54497] Fix | Delete
[54498] Fix | Delete
function BlockEditVisuallyButton({
[54499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function