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
*
[21000] Fix | Delete
* If called outside of a block context, the mode is applied to all blocks.
[21001] Fix | Delete
*
[21002] Fix | Delete
* @param {?BlockEditingMode} mode The editing mode to apply. If undefined, the
[21003] Fix | Delete
* current editing mode is not changed.
[21004] Fix | Delete
*
[21005] Fix | Delete
* @return {BlockEditingMode} The current editing mode.
[21006] Fix | Delete
*/
[21007] Fix | Delete
function useBlockEditingMode(mode) {
[21008] Fix | Delete
const context = useBlockEditContext();
[21009] Fix | Delete
const {
[21010] Fix | Delete
clientId = ''
[21011] Fix | Delete
} = context;
[21012] Fix | Delete
const {
[21013] Fix | Delete
setBlockEditingMode,
[21014] Fix | Delete
unsetBlockEditingMode
[21015] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
[21016] Fix | Delete
const globalBlockEditingMode = (0,external_wp_data_namespaceObject.useSelect)(select =>
[21017] Fix | Delete
// Avoid adding the subscription if not needed!
[21018] Fix | Delete
clientId ? null : select(store).getBlockEditingMode(), [clientId]);
[21019] Fix | Delete
(0,external_wp_element_namespaceObject.useEffect)(() => {
[21020] Fix | Delete
if (mode) {
[21021] Fix | Delete
setBlockEditingMode(clientId, mode);
[21022] Fix | Delete
}
[21023] Fix | Delete
return () => {
[21024] Fix | Delete
if (mode) {
[21025] Fix | Delete
unsetBlockEditingMode(clientId);
[21026] Fix | Delete
}
[21027] Fix | Delete
};
[21028] Fix | Delete
}, [clientId, mode, setBlockEditingMode, unsetBlockEditingMode]);
[21029] Fix | Delete
return clientId ? context[blockEditingModeKey] : globalBlockEditingMode;
[21030] Fix | Delete
}
[21031] Fix | Delete
[21032] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/align.js
[21033] Fix | Delete
/**
[21034] Fix | Delete
* External dependencies
[21035] Fix | Delete
*/
[21036] Fix | Delete
[21037] Fix | Delete
[21038] Fix | Delete
/**
[21039] Fix | Delete
* WordPress dependencies
[21040] Fix | Delete
*/
[21041] Fix | Delete
[21042] Fix | Delete
[21043] Fix | Delete
[21044] Fix | Delete
/**
[21045] Fix | Delete
* Internal dependencies
[21046] Fix | Delete
*/
[21047] Fix | Delete
[21048] Fix | Delete
[21049] Fix | Delete
[21050] Fix | Delete
[21051] Fix | Delete
/**
[21052] Fix | Delete
* An array which includes all possible valid alignments,
[21053] Fix | Delete
* used to validate if an alignment is valid or not.
[21054] Fix | Delete
*
[21055] Fix | Delete
* @constant
[21056] Fix | Delete
* @type {string[]}
[21057] Fix | Delete
*/
[21058] Fix | Delete
[21059] Fix | Delete
const ALL_ALIGNMENTS = ['left', 'center', 'right', 'wide', 'full'];
[21060] Fix | Delete
[21061] Fix | Delete
/**
[21062] Fix | Delete
* An array which includes all wide alignments.
[21063] Fix | Delete
* In order for this alignments to be valid they need to be supported by the block,
[21064] Fix | Delete
* and by the theme.
[21065] Fix | Delete
*
[21066] Fix | Delete
* @constant
[21067] Fix | Delete
* @type {string[]}
[21068] Fix | Delete
*/
[21069] Fix | Delete
const WIDE_ALIGNMENTS = ['wide', 'full'];
[21070] Fix | Delete
[21071] Fix | Delete
/**
[21072] Fix | Delete
* Returns the valid alignments.
[21073] Fix | Delete
* Takes into consideration the aligns supported by a block, if the block supports wide controls or not and if theme supports wide controls or not.
[21074] Fix | Delete
* Exported just for testing purposes, not exported outside the module.
[21075] Fix | Delete
*
[21076] Fix | Delete
* @param {?boolean|string[]} blockAlign Aligns supported by the block.
[21077] Fix | Delete
* @param {?boolean} hasWideBlockSupport True if block supports wide alignments. And False otherwise.
[21078] Fix | Delete
* @param {?boolean} hasWideEnabled True if theme supports wide alignments. And False otherwise.
[21079] Fix | Delete
*
[21080] Fix | Delete
* @return {string[]} Valid alignments.
[21081] Fix | Delete
*/
[21082] Fix | Delete
function getValidAlignments(blockAlign, hasWideBlockSupport = true, hasWideEnabled = true) {
[21083] Fix | Delete
let validAlignments;
[21084] Fix | Delete
if (Array.isArray(blockAlign)) {
[21085] Fix | Delete
validAlignments = ALL_ALIGNMENTS.filter(value => blockAlign.includes(value));
[21086] Fix | Delete
} else if (blockAlign === true) {
[21087] Fix | Delete
// `true` includes all alignments...
[21088] Fix | Delete
validAlignments = [...ALL_ALIGNMENTS];
[21089] Fix | Delete
} else {
[21090] Fix | Delete
validAlignments = [];
[21091] Fix | Delete
}
[21092] Fix | Delete
if (!hasWideEnabled || blockAlign === true && !hasWideBlockSupport) {
[21093] Fix | Delete
return validAlignments.filter(alignment => !WIDE_ALIGNMENTS.includes(alignment));
[21094] Fix | Delete
}
[21095] Fix | Delete
return validAlignments;
[21096] Fix | Delete
}
[21097] Fix | Delete
[21098] Fix | Delete
/**
[21099] Fix | Delete
* Filters registered block settings, extending attributes to include `align`.
[21100] Fix | Delete
*
[21101] Fix | Delete
* @param {Object} settings Original block settings.
[21102] Fix | Delete
*
[21103] Fix | Delete
* @return {Object} Filtered block settings.
[21104] Fix | Delete
*/
[21105] Fix | Delete
function addAttribute(settings) {
[21106] Fix | Delete
var _settings$attributes$;
[21107] Fix | Delete
// Allow blocks to specify their own attribute definition with default values if needed.
[21108] Fix | Delete
if ('type' in ((_settings$attributes$ = settings.attributes?.align) !== null && _settings$attributes$ !== void 0 ? _settings$attributes$ : {})) {
[21109] Fix | Delete
return settings;
[21110] Fix | Delete
}
[21111] Fix | Delete
if ((0,external_wp_blocks_namespaceObject.hasBlockSupport)(settings, 'align')) {
[21112] Fix | Delete
// Gracefully handle if settings.attributes is undefined.
[21113] Fix | Delete
settings.attributes = {
[21114] Fix | Delete
...settings.attributes,
[21115] Fix | Delete
align: {
[21116] Fix | Delete
type: 'string',
[21117] Fix | Delete
// Allow for '' since it is used by the `updateAlignment` function
[21118] Fix | Delete
// in toolbar controls for special cases with defined default values.
[21119] Fix | Delete
enum: [...ALL_ALIGNMENTS, '']
[21120] Fix | Delete
}
[21121] Fix | Delete
};
[21122] Fix | Delete
}
[21123] Fix | Delete
return settings;
[21124] Fix | Delete
}
[21125] Fix | Delete
function BlockEditAlignmentToolbarControlsPure({
[21126] Fix | Delete
name: blockName,
[21127] Fix | Delete
align,
[21128] Fix | Delete
setAttributes
[21129] Fix | Delete
}) {
[21130] Fix | Delete
// Compute the block valid alignments by taking into account,
[21131] Fix | Delete
// if the theme supports wide alignments or not and the layout's
[21132] Fix | Delete
// available alignments. We do that for conditionally rendering
[21133] Fix | Delete
// Slot.
[21134] Fix | Delete
const blockAllowedAlignments = getValidAlignments((0,external_wp_blocks_namespaceObject.getBlockSupport)(blockName, 'align'), (0,external_wp_blocks_namespaceObject.hasBlockSupport)(blockName, 'alignWide', true));
[21135] Fix | Delete
const validAlignments = useAvailableAlignments(blockAllowedAlignments).map(({
[21136] Fix | Delete
name
[21137] Fix | Delete
}) => name);
[21138] Fix | Delete
const blockEditingMode = useBlockEditingMode();
[21139] Fix | Delete
if (!validAlignments.length || blockEditingMode !== 'default') {
[21140] Fix | Delete
return null;
[21141] Fix | Delete
}
[21142] Fix | Delete
const updateAlignment = nextAlign => {
[21143] Fix | Delete
if (!nextAlign) {
[21144] Fix | Delete
const blockType = (0,external_wp_blocks_namespaceObject.getBlockType)(blockName);
[21145] Fix | Delete
const blockDefaultAlign = blockType?.attributes?.align?.default;
[21146] Fix | Delete
if (blockDefaultAlign) {
[21147] Fix | Delete
nextAlign = '';
[21148] Fix | Delete
}
[21149] Fix | Delete
}
[21150] Fix | Delete
setAttributes({
[21151] Fix | Delete
align: nextAlign
[21152] Fix | Delete
});
[21153] Fix | Delete
};
[21154] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_controls, {
[21155] Fix | Delete
group: "block",
[21156] Fix | Delete
__experimentalShareWithChildBlocks: true,
[21157] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockAlignmentControl, {
[21158] Fix | Delete
value: align,
[21159] Fix | Delete
onChange: updateAlignment,
[21160] Fix | Delete
controls: validAlignments
[21161] Fix | Delete
})
[21162] Fix | Delete
});
[21163] Fix | Delete
}
[21164] Fix | Delete
/* harmony default export */ const align = ({
[21165] Fix | Delete
shareWithChildBlocks: true,
[21166] Fix | Delete
edit: BlockEditAlignmentToolbarControlsPure,
[21167] Fix | Delete
useBlockProps,
[21168] Fix | Delete
addSaveProps: addAssignedAlign,
[21169] Fix | Delete
attributeKeys: ['align'],
[21170] Fix | Delete
hasSupport(name) {
[21171] Fix | Delete
return (0,external_wp_blocks_namespaceObject.hasBlockSupport)(name, 'align', false);
[21172] Fix | Delete
}
[21173] Fix | Delete
});
[21174] Fix | Delete
function useBlockProps({
[21175] Fix | Delete
name,
[21176] Fix | Delete
align
[21177] Fix | Delete
}) {
[21178] Fix | Delete
const blockAllowedAlignments = getValidAlignments((0,external_wp_blocks_namespaceObject.getBlockSupport)(name, 'align'), (0,external_wp_blocks_namespaceObject.hasBlockSupport)(name, 'alignWide', true));
[21179] Fix | Delete
const validAlignments = useAvailableAlignments(blockAllowedAlignments);
[21180] Fix | Delete
if (validAlignments.some(alignment => alignment.name === align)) {
[21181] Fix | Delete
return {
[21182] Fix | Delete
'data-align': align
[21183] Fix | Delete
};
[21184] Fix | Delete
}
[21185] Fix | Delete
return {};
[21186] Fix | Delete
}
[21187] Fix | Delete
[21188] Fix | Delete
/**
[21189] Fix | Delete
* Override props assigned to save component to inject alignment class name if
[21190] Fix | Delete
* block supports it.
[21191] Fix | Delete
*
[21192] Fix | Delete
* @param {Object} props Additional props applied to save element.
[21193] Fix | Delete
* @param {Object} blockType Block type.
[21194] Fix | Delete
* @param {Object} attributes Block attributes.
[21195] Fix | Delete
*
[21196] Fix | Delete
* @return {Object} Filtered props applied to save element.
[21197] Fix | Delete
*/
[21198] Fix | Delete
function addAssignedAlign(props, blockType, attributes) {
[21199] Fix | Delete
const {
[21200] Fix | Delete
align
[21201] Fix | Delete
} = attributes;
[21202] Fix | Delete
const blockAlign = (0,external_wp_blocks_namespaceObject.getBlockSupport)(blockType, 'align');
[21203] Fix | Delete
const hasWideBlockSupport = (0,external_wp_blocks_namespaceObject.hasBlockSupport)(blockType, 'alignWide', true);
[21204] Fix | Delete
[21205] Fix | Delete
// Compute valid alignments without taking into account if
[21206] Fix | Delete
// the theme supports wide alignments or not.
[21207] Fix | Delete
// This way changing themes does not impact the block save.
[21208] Fix | Delete
const isAlignValid = getValidAlignments(blockAlign, hasWideBlockSupport).includes(align);
[21209] Fix | Delete
if (isAlignValid) {
[21210] Fix | Delete
props.className = dist_clsx(`align${align}`, props.className);
[21211] Fix | Delete
}
[21212] Fix | Delete
return props;
[21213] Fix | Delete
}
[21214] Fix | Delete
(0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/editor/align/addAttribute', addAttribute);
[21215] Fix | Delete
[21216] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-controls/groups.js
[21217] Fix | Delete
/**
[21218] Fix | Delete
* WordPress dependencies
[21219] Fix | Delete
*/
[21220] Fix | Delete
[21221] Fix | Delete
const InspectorControlsDefault = (0,external_wp_components_namespaceObject.createSlotFill)('InspectorControls');
[21222] Fix | Delete
const InspectorControlsAdvanced = (0,external_wp_components_namespaceObject.createSlotFill)('InspectorAdvancedControls');
[21223] Fix | Delete
const InspectorControlsBackground = (0,external_wp_components_namespaceObject.createSlotFill)('InspectorControlsBackground');
[21224] Fix | Delete
const InspectorControlsBorder = (0,external_wp_components_namespaceObject.createSlotFill)('InspectorControlsBorder');
[21225] Fix | Delete
const InspectorControlsColor = (0,external_wp_components_namespaceObject.createSlotFill)('InspectorControlsColor');
[21226] Fix | Delete
const InspectorControlsFilter = (0,external_wp_components_namespaceObject.createSlotFill)('InspectorControlsFilter');
[21227] Fix | Delete
const InspectorControlsDimensions = (0,external_wp_components_namespaceObject.createSlotFill)('InspectorControlsDimensions');
[21228] Fix | Delete
const InspectorControlsPosition = (0,external_wp_components_namespaceObject.createSlotFill)('InspectorControlsPosition');
[21229] Fix | Delete
const InspectorControlsTypography = (0,external_wp_components_namespaceObject.createSlotFill)('InspectorControlsTypography');
[21230] Fix | Delete
const InspectorControlsListView = (0,external_wp_components_namespaceObject.createSlotFill)('InspectorControlsListView');
[21231] Fix | Delete
const InspectorControlsStyles = (0,external_wp_components_namespaceObject.createSlotFill)('InspectorControlsStyles');
[21232] Fix | Delete
const InspectorControlsEffects = (0,external_wp_components_namespaceObject.createSlotFill)('InspectorControlsEffects');
[21233] Fix | Delete
const groups_groups = {
[21234] Fix | Delete
default: InspectorControlsDefault,
[21235] Fix | Delete
advanced: InspectorControlsAdvanced,
[21236] Fix | Delete
background: InspectorControlsBackground,
[21237] Fix | Delete
border: InspectorControlsBorder,
[21238] Fix | Delete
color: InspectorControlsColor,
[21239] Fix | Delete
dimensions: InspectorControlsDimensions,
[21240] Fix | Delete
effects: InspectorControlsEffects,
[21241] Fix | Delete
filter: InspectorControlsFilter,
[21242] Fix | Delete
list: InspectorControlsListView,
[21243] Fix | Delete
position: InspectorControlsPosition,
[21244] Fix | Delete
settings: InspectorControlsDefault,
[21245] Fix | Delete
// Alias for default.
[21246] Fix | Delete
styles: InspectorControlsStyles,
[21247] Fix | Delete
typography: InspectorControlsTypography
[21248] Fix | Delete
};
[21249] Fix | Delete
/* harmony default export */ const inspector_controls_groups = (groups_groups);
[21250] Fix | Delete
[21251] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-controls/fill.js
[21252] Fix | Delete
/**
[21253] Fix | Delete
* WordPress dependencies
[21254] Fix | Delete
*/
[21255] Fix | Delete
[21256] Fix | Delete
[21257] Fix | Delete
[21258] Fix | Delete
[21259] Fix | Delete
[21260] Fix | Delete
/**
[21261] Fix | Delete
* Internal dependencies
[21262] Fix | Delete
*/
[21263] Fix | Delete
[21264] Fix | Delete
[21265] Fix | Delete
[21266] Fix | Delete
function InspectorControlsFill({
[21267] Fix | Delete
children,
[21268] Fix | Delete
group = 'default',
[21269] Fix | Delete
__experimentalGroup,
[21270] Fix | Delete
resetAllFilter
[21271] Fix | Delete
}) {
[21272] Fix | Delete
if (__experimentalGroup) {
[21273] Fix | Delete
external_wp_deprecated_default()('`__experimentalGroup` property in `InspectorControlsFill`', {
[21274] Fix | Delete
since: '6.2',
[21275] Fix | Delete
version: '6.4',
[21276] Fix | Delete
alternative: '`group`'
[21277] Fix | Delete
});
[21278] Fix | Delete
group = __experimentalGroup;
[21279] Fix | Delete
}
[21280] Fix | Delete
const context = useBlockEditContext();
[21281] Fix | Delete
const Fill = inspector_controls_groups[group]?.Fill;
[21282] Fix | Delete
if (!Fill) {
[21283] Fix | Delete
true ? external_wp_warning_default()(`Unknown InspectorControls group "${group}" provided.`) : 0;
[21284] Fix | Delete
return null;
[21285] Fix | Delete
}
[21286] Fix | Delete
if (!context[mayDisplayControlsKey]) {
[21287] Fix | Delete
return null;
[21288] Fix | Delete
}
[21289] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalStyleProvider, {
[21290] Fix | Delete
document: document,
[21291] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Fill, {
[21292] Fix | Delete
children: fillProps => {
[21293] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ToolsPanelInspectorControl, {
[21294] Fix | Delete
fillProps: fillProps,
[21295] Fix | Delete
children: children,
[21296] Fix | Delete
resetAllFilter: resetAllFilter
[21297] Fix | Delete
});
[21298] Fix | Delete
}
[21299] Fix | Delete
})
[21300] Fix | Delete
});
[21301] Fix | Delete
}
[21302] Fix | Delete
function RegisterResetAll({
[21303] Fix | Delete
resetAllFilter,
[21304] Fix | Delete
children
[21305] Fix | Delete
}) {
[21306] Fix | Delete
const {
[21307] Fix | Delete
registerResetAllFilter,
[21308] Fix | Delete
deregisterResetAllFilter
[21309] Fix | Delete
} = (0,external_wp_element_namespaceObject.useContext)(external_wp_components_namespaceObject.__experimentalToolsPanelContext);
[21310] Fix | Delete
(0,external_wp_element_namespaceObject.useEffect)(() => {
[21311] Fix | Delete
if (resetAllFilter && registerResetAllFilter && deregisterResetAllFilter) {
[21312] Fix | Delete
registerResetAllFilter(resetAllFilter);
[21313] Fix | Delete
return () => {
[21314] Fix | Delete
deregisterResetAllFilter(resetAllFilter);
[21315] Fix | Delete
};
[21316] Fix | Delete
}
[21317] Fix | Delete
}, [resetAllFilter, registerResetAllFilter, deregisterResetAllFilter]);
[21318] Fix | Delete
return children;
[21319] Fix | Delete
}
[21320] Fix | Delete
function ToolsPanelInspectorControl({
[21321] Fix | Delete
children,
[21322] Fix | Delete
resetAllFilter,
[21323] Fix | Delete
fillProps
[21324] Fix | Delete
}) {
[21325] Fix | Delete
// `fillProps.forwardedContext` is an array of context provider entries, provided by slot,
[21326] Fix | Delete
// that should wrap the fill markup.
[21327] Fix | Delete
const {
[21328] Fix | Delete
forwardedContext = []
[21329] Fix | Delete
} = fillProps;
[21330] Fix | Delete
[21331] Fix | Delete
// Children passed to InspectorControlsFill will not have
[21332] Fix | Delete
// access to any React Context whose Provider is part of
[21333] Fix | Delete
// the InspectorControlsSlot tree. So we re-create the
[21334] Fix | Delete
// Provider in this subtree.
[21335] Fix | Delete
const innerMarkup = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RegisterResetAll, {
[21336] Fix | Delete
resetAllFilter: resetAllFilter,
[21337] Fix | Delete
children: children
[21338] Fix | Delete
});
[21339] Fix | Delete
return forwardedContext.reduce((inner, [Provider, props]) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Provider, {
[21340] Fix | Delete
...props,
[21341] Fix | Delete
children: inner
[21342] Fix | Delete
}), innerMarkup);
[21343] Fix | Delete
}
[21344] Fix | Delete
[21345] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-controls/block-support-tools-panel.js
[21346] Fix | Delete
/**
[21347] Fix | Delete
* WordPress dependencies
[21348] Fix | Delete
*/
[21349] Fix | Delete
[21350] Fix | Delete
[21351] Fix | Delete
[21352] Fix | Delete
[21353] Fix | Delete
/**
[21354] Fix | Delete
* Internal dependencies
[21355] Fix | Delete
*/
[21356] Fix | Delete
[21357] Fix | Delete
[21358] Fix | Delete
[21359] Fix | Delete
[21360] Fix | Delete
function BlockSupportToolsPanel({
[21361] Fix | Delete
children,
[21362] Fix | Delete
group,
[21363] Fix | Delete
label
[21364] Fix | Delete
}) {
[21365] Fix | Delete
const {
[21366] Fix | Delete
updateBlockAttributes
[21367] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
[21368] Fix | Delete
const {
[21369] Fix | Delete
getBlockAttributes,
[21370] Fix | Delete
getMultiSelectedBlockClientIds,
[21371] Fix | Delete
getSelectedBlockClientId,
[21372] Fix | Delete
hasMultiSelection
[21373] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(store);
[21374] Fix | Delete
const dropdownMenuProps = useToolsPanelDropdownMenuProps();
[21375] Fix | Delete
const panelId = getSelectedBlockClientId();
[21376] Fix | Delete
const resetAll = (0,external_wp_element_namespaceObject.useCallback)((resetFilters = []) => {
[21377] Fix | Delete
const newAttributes = {};
[21378] Fix | Delete
const clientIds = hasMultiSelection() ? getMultiSelectedBlockClientIds() : [panelId];
[21379] Fix | Delete
clientIds.forEach(clientId => {
[21380] Fix | Delete
const {
[21381] Fix | Delete
style
[21382] Fix | Delete
} = getBlockAttributes(clientId);
[21383] Fix | Delete
let newBlockAttributes = {
[21384] Fix | Delete
style
[21385] Fix | Delete
};
[21386] Fix | Delete
resetFilters.forEach(resetFilter => {
[21387] Fix | Delete
newBlockAttributes = {
[21388] Fix | Delete
...newBlockAttributes,
[21389] Fix | Delete
...resetFilter(newBlockAttributes)
[21390] Fix | Delete
};
[21391] Fix | Delete
});
[21392] Fix | Delete
[21393] Fix | Delete
// Enforce a cleaned style object.
[21394] Fix | Delete
newBlockAttributes = {
[21395] Fix | Delete
...newBlockAttributes,
[21396] Fix | Delete
style: utils_cleanEmptyObject(newBlockAttributes.style)
[21397] Fix | Delete
};
[21398] Fix | Delete
newAttributes[clientId] = newBlockAttributes;
[21399] Fix | Delete
});
[21400] Fix | Delete
updateBlockAttributes(clientIds, newAttributes, true);
[21401] Fix | Delete
}, [getBlockAttributes, getMultiSelectedBlockClientIds, hasMultiSelection, panelId, updateBlockAttributes]);
[21402] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanel, {
[21403] Fix | Delete
className: `${group}-block-support-panel`,
[21404] Fix | Delete
label: label,
[21405] Fix | Delete
resetAll: resetAll,
[21406] Fix | Delete
panelId: panelId,
[21407] Fix | Delete
hasInnerWrapper: true,
[21408] Fix | Delete
shouldRenderPlaceholderItems: true // Required to maintain fills ordering.
[21409] Fix | Delete
,
[21410] Fix | Delete
__experimentalFirstVisibleItemClass: "first",
[21411] Fix | Delete
__experimentalLastVisibleItemClass: "last",
[21412] Fix | Delete
dropdownMenuProps: dropdownMenuProps,
[21413] Fix | Delete
children: children
[21414] Fix | Delete
}, panelId);
[21415] Fix | Delete
}
[21416] Fix | Delete
[21417] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-controls/block-support-slot-container.js
[21418] Fix | Delete
/**
[21419] Fix | Delete
* WordPress dependencies
[21420] Fix | Delete
*/
[21421] Fix | Delete
[21422] Fix | Delete
[21423] Fix | Delete
[21424] Fix | Delete
function BlockSupportSlotContainer({
[21425] Fix | Delete
Slot,
[21426] Fix | Delete
fillProps,
[21427] Fix | Delete
...props
[21428] Fix | Delete
}) {
[21429] Fix | Delete
// Add the toolspanel context provider and value to existing fill props
[21430] Fix | Delete
const toolsPanelContext = (0,external_wp_element_namespaceObject.useContext)(external_wp_components_namespaceObject.__experimentalToolsPanelContext);
[21431] Fix | Delete
const computedFillProps = (0,external_wp_element_namespaceObject.useMemo)(() => {
[21432] Fix | Delete
var _fillProps$forwardedC;
[21433] Fix | Delete
return {
[21434] Fix | Delete
...(fillProps !== null && fillProps !== void 0 ? fillProps : {}),
[21435] Fix | Delete
forwardedContext: [...((_fillProps$forwardedC = fillProps?.forwardedContext) !== null && _fillProps$forwardedC !== void 0 ? _fillProps$forwardedC : []), [external_wp_components_namespaceObject.__experimentalToolsPanelContext.Provider, {
[21436] Fix | Delete
value: toolsPanelContext
[21437] Fix | Delete
}]]
[21438] Fix | Delete
};
[21439] Fix | Delete
}, [toolsPanelContext, fillProps]);
[21440] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Slot, {
[21441] Fix | Delete
...props,
[21442] Fix | Delete
fillProps: computedFillProps,
[21443] Fix | Delete
bubblesVirtually: true
[21444] Fix | Delete
});
[21445] Fix | Delete
}
[21446] Fix | Delete
[21447] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-controls/slot.js
[21448] Fix | Delete
/**
[21449] Fix | Delete
* WordPress dependencies
[21450] Fix | Delete
*/
[21451] Fix | Delete
[21452] Fix | Delete
[21453] Fix | Delete
[21454] Fix | Delete
[21455] Fix | Delete
[21456] Fix | Delete
/**
[21457] Fix | Delete
* Internal dependencies
[21458] Fix | Delete
*/
[21459] Fix | Delete
[21460] Fix | Delete
[21461] Fix | Delete
[21462] Fix | Delete
[21463] Fix | Delete
function InspectorControlsSlot({
[21464] Fix | Delete
__experimentalGroup,
[21465] Fix | Delete
group = 'default',
[21466] Fix | Delete
label,
[21467] Fix | Delete
fillProps,
[21468] Fix | Delete
...props
[21469] Fix | Delete
}) {
[21470] Fix | Delete
if (__experimentalGroup) {
[21471] Fix | Delete
external_wp_deprecated_default()('`__experimentalGroup` property in `InspectorControlsSlot`', {
[21472] Fix | Delete
since: '6.2',
[21473] Fix | Delete
version: '6.4',
[21474] Fix | Delete
alternative: '`group`'
[21475] Fix | Delete
});
[21476] Fix | Delete
group = __experimentalGroup;
[21477] Fix | Delete
}
[21478] Fix | Delete
const Slot = inspector_controls_groups[group]?.Slot;
[21479] Fix | Delete
const fills = (0,external_wp_components_namespaceObject.__experimentalUseSlotFills)(Slot?.__unstableName);
[21480] Fix | Delete
const motionContextValue = (0,external_wp_element_namespaceObject.useContext)(external_wp_components_namespaceObject.__unstableMotionContext);
[21481] Fix | Delete
const computedFillProps = (0,external_wp_element_namespaceObject.useMemo)(() => {
[21482] Fix | Delete
var _fillProps$forwardedC;
[21483] Fix | Delete
return {
[21484] Fix | Delete
...(fillProps !== null && fillProps !== void 0 ? fillProps : {}),
[21485] Fix | Delete
forwardedContext: [...((_fillProps$forwardedC = fillProps?.forwardedContext) !== null && _fillProps$forwardedC !== void 0 ? _fillProps$forwardedC : []), [external_wp_components_namespaceObject.__unstableMotionContext.Provider, {
[21486] Fix | Delete
value: motionContextValue
[21487] Fix | Delete
}]]
[21488] Fix | Delete
};
[21489] Fix | Delete
}, [motionContextValue, fillProps]);
[21490] Fix | Delete
if (!Slot) {
[21491] Fix | Delete
true ? external_wp_warning_default()(`Unknown InspectorControls group "${group}" provided.`) : 0;
[21492] Fix | Delete
return null;
[21493] Fix | Delete
}
[21494] Fix | Delete
if (!fills?.length) {
[21495] Fix | Delete
return null;
[21496] Fix | Delete
}
[21497] Fix | Delete
if (label) {
[21498] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockSupportToolsPanel, {
[21499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function