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
}
[32000] Fix | Delete
/* harmony default export */ const dimensions = ({
[32001] Fix | Delete
useBlockProps: dimensions_useBlockProps,
[32002] Fix | Delete
attributeKeys: ['minHeight', 'style'],
[32003] Fix | Delete
hasSupport(name) {
[32004] Fix | Delete
return hasDimensionsSupport(name, 'aspectRatio');
[32005] Fix | Delete
}
[32006] Fix | Delete
});
[32007] Fix | Delete
function dimensions_useBlockProps({
[32008] Fix | Delete
name,
[32009] Fix | Delete
minHeight,
[32010] Fix | Delete
style
[32011] Fix | Delete
}) {
[32012] Fix | Delete
if (!hasDimensionsSupport(name, 'aspectRatio') || shouldSkipSerialization(name, DIMENSIONS_SUPPORT_KEY, 'aspectRatio')) {
[32013] Fix | Delete
return {};
[32014] Fix | Delete
}
[32015] Fix | Delete
const className = dist_clsx({
[32016] Fix | Delete
'has-aspect-ratio': !!style?.dimensions?.aspectRatio
[32017] Fix | Delete
});
[32018] Fix | Delete
[32019] Fix | Delete
// Allow dimensions-based inline style overrides to override any global styles rules that
[32020] Fix | Delete
// might be set for the block, and therefore affect the display of the aspect ratio.
[32021] Fix | Delete
const inlineStyleOverrides = {};
[32022] Fix | Delete
[32023] Fix | Delete
// Apply rules to unset incompatible styles.
[32024] Fix | Delete
// Note that a set `aspectRatio` will win out if both an aspect ratio and a minHeight are set.
[32025] Fix | Delete
// This is because the aspect ratio is a newer block support, so (in theory) any aspect ratio
[32026] Fix | Delete
// that is set should be intentional and should override any existing minHeight. The Cover block
[32027] Fix | Delete
// and dimensions controls have logic that will manually clear the aspect ratio if a minHeight
[32028] Fix | Delete
// is set.
[32029] Fix | Delete
if (style?.dimensions?.aspectRatio) {
[32030] Fix | Delete
// To ensure the aspect ratio does not get overridden by `minHeight` unset any existing rule.
[32031] Fix | Delete
inlineStyleOverrides.minHeight = 'unset';
[32032] Fix | Delete
} else if (minHeight || style?.dimensions?.minHeight) {
[32033] Fix | Delete
// To ensure the minHeight does not get overridden by `aspectRatio` unset any existing rule.
[32034] Fix | Delete
inlineStyleOverrides.aspectRatio = 'unset';
[32035] Fix | Delete
}
[32036] Fix | Delete
return {
[32037] Fix | Delete
className,
[32038] Fix | Delete
style: inlineStyleOverrides
[32039] Fix | Delete
};
[32040] Fix | Delete
}
[32041] Fix | Delete
[32042] Fix | Delete
/**
[32043] Fix | Delete
* @deprecated
[32044] Fix | Delete
*/
[32045] Fix | Delete
function useCustomSides() {
[32046] Fix | Delete
external_wp_deprecated_default()('wp.blockEditor.__experimentalUseCustomSides', {
[32047] Fix | Delete
since: '6.3',
[32048] Fix | Delete
version: '6.4'
[32049] Fix | Delete
});
[32050] Fix | Delete
}
[32051] Fix | Delete
[32052] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/style.js
[32053] Fix | Delete
/**
[32054] Fix | Delete
* WordPress dependencies
[32055] Fix | Delete
*/
[32056] Fix | Delete
[32057] Fix | Delete
[32058] Fix | Delete
[32059] Fix | Delete
[32060] Fix | Delete
[32061] Fix | Delete
[32062] Fix | Delete
/**
[32063] Fix | Delete
* Internal dependencies
[32064] Fix | Delete
*/
[32065] Fix | Delete
[32066] Fix | Delete
[32067] Fix | Delete
[32068] Fix | Delete
[32069] Fix | Delete
[32070] Fix | Delete
[32071] Fix | Delete
[32072] Fix | Delete
[32073] Fix | Delete
[32074] Fix | Delete
[32075] Fix | Delete
[32076] Fix | Delete
const styleSupportKeys = [...TYPOGRAPHY_SUPPORT_KEYS, BORDER_SUPPORT_KEY, COLOR_SUPPORT_KEY, DIMENSIONS_SUPPORT_KEY, BACKGROUND_SUPPORT_KEY, SPACING_SUPPORT_KEY, SHADOW_SUPPORT_KEY];
[32077] Fix | Delete
const hasStyleSupport = nameOrType => styleSupportKeys.some(key => (0,external_wp_blocks_namespaceObject.hasBlockSupport)(nameOrType, key));
[32078] Fix | Delete
[32079] Fix | Delete
/**
[32080] Fix | Delete
* Returns the inline styles to add depending on the style object
[32081] Fix | Delete
*
[32082] Fix | Delete
* @param {Object} styles Styles configuration.
[32083] Fix | Delete
*
[32084] Fix | Delete
* @return {Object} Flattened CSS variables declaration.
[32085] Fix | Delete
*/
[32086] Fix | Delete
function getInlineStyles(styles = {}) {
[32087] Fix | Delete
const output = {};
[32088] Fix | Delete
// The goal is to move everything to server side generated engine styles
[32089] Fix | Delete
// This is temporary as we absorb more and more styles into the engine.
[32090] Fix | Delete
(0,external_wp_styleEngine_namespaceObject.getCSSRules)(styles).forEach(rule => {
[32091] Fix | Delete
output[rule.key] = rule.value;
[32092] Fix | Delete
});
[32093] Fix | Delete
return output;
[32094] Fix | Delete
}
[32095] Fix | Delete
[32096] Fix | Delete
/**
[32097] Fix | Delete
* Filters registered block settings, extending attributes to include `style` attribute.
[32098] Fix | Delete
*
[32099] Fix | Delete
* @param {Object} settings Original block settings.
[32100] Fix | Delete
*
[32101] Fix | Delete
* @return {Object} Filtered block settings.
[32102] Fix | Delete
*/
[32103] Fix | Delete
function style_addAttribute(settings) {
[32104] Fix | Delete
if (!hasStyleSupport(settings)) {
[32105] Fix | Delete
return settings;
[32106] Fix | Delete
}
[32107] Fix | Delete
[32108] Fix | Delete
// Allow blocks to specify their own attribute definition with default values if needed.
[32109] Fix | Delete
if (!settings.attributes.style) {
[32110] Fix | Delete
Object.assign(settings.attributes, {
[32111] Fix | Delete
style: {
[32112] Fix | Delete
type: 'object'
[32113] Fix | Delete
}
[32114] Fix | Delete
});
[32115] Fix | Delete
}
[32116] Fix | Delete
return settings;
[32117] Fix | Delete
}
[32118] Fix | Delete
[32119] Fix | Delete
/**
[32120] Fix | Delete
* A dictionary of paths to flag skipping block support serialization as the key,
[32121] Fix | Delete
* with values providing the style paths to be omitted from serialization.
[32122] Fix | Delete
*
[32123] Fix | Delete
* @constant
[32124] Fix | Delete
* @type {Record<string, string[]>}
[32125] Fix | Delete
*/
[32126] Fix | Delete
const skipSerializationPathsEdit = {
[32127] Fix | Delete
[`${BORDER_SUPPORT_KEY}.__experimentalSkipSerialization`]: ['border'],
[32128] Fix | Delete
[`${COLOR_SUPPORT_KEY}.__experimentalSkipSerialization`]: [COLOR_SUPPORT_KEY],
[32129] Fix | Delete
[`${TYPOGRAPHY_SUPPORT_KEY}.__experimentalSkipSerialization`]: [TYPOGRAPHY_SUPPORT_KEY],
[32130] Fix | Delete
[`${DIMENSIONS_SUPPORT_KEY}.__experimentalSkipSerialization`]: [DIMENSIONS_SUPPORT_KEY],
[32131] Fix | Delete
[`${SPACING_SUPPORT_KEY}.__experimentalSkipSerialization`]: [SPACING_SUPPORT_KEY],
[32132] Fix | Delete
[`${SHADOW_SUPPORT_KEY}.__experimentalSkipSerialization`]: [SHADOW_SUPPORT_KEY]
[32133] Fix | Delete
};
[32134] Fix | Delete
[32135] Fix | Delete
/**
[32136] Fix | Delete
* A dictionary of paths to flag skipping block support serialization as the key,
[32137] Fix | Delete
* with values providing the style paths to be omitted from serialization.
[32138] Fix | Delete
*
[32139] Fix | Delete
* Extends the Edit skip paths to enable skipping additional paths in just
[32140] Fix | Delete
* the Save component. This allows a block support to be serialized within the
[32141] Fix | Delete
* editor, while using an alternate approach, such as server-side rendering, when
[32142] Fix | Delete
* the support is saved.
[32143] Fix | Delete
*
[32144] Fix | Delete
* @constant
[32145] Fix | Delete
* @type {Record<string, string[]>}
[32146] Fix | Delete
*/
[32147] Fix | Delete
const skipSerializationPathsSave = {
[32148] Fix | Delete
...skipSerializationPathsEdit,
[32149] Fix | Delete
[`${DIMENSIONS_SUPPORT_KEY}.aspectRatio`]: [`${DIMENSIONS_SUPPORT_KEY}.aspectRatio`],
[32150] Fix | Delete
// Skip serialization of aspect ratio in save mode.
[32151] Fix | Delete
[`${BACKGROUND_SUPPORT_KEY}`]: [BACKGROUND_SUPPORT_KEY] // Skip serialization of background support in save mode.
[32152] Fix | Delete
};
[32153] Fix | Delete
const skipSerializationPathsSaveChecks = {
[32154] Fix | Delete
[`${DIMENSIONS_SUPPORT_KEY}.aspectRatio`]: true,
[32155] Fix | Delete
[`${BACKGROUND_SUPPORT_KEY}`]: true
[32156] Fix | Delete
};
[32157] Fix | Delete
[32158] Fix | Delete
/**
[32159] Fix | Delete
* A dictionary used to normalize feature names between support flags, style
[32160] Fix | Delete
* object properties and __experimentSkipSerialization configuration arrays.
[32161] Fix | Delete
*
[32162] Fix | Delete
* This allows not having to provide a migration for a support flag and possible
[32163] Fix | Delete
* backwards compatibility bridges, while still achieving consistency between
[32164] Fix | Delete
* the support flag and the skip serialization array.
[32165] Fix | Delete
*
[32166] Fix | Delete
* @constant
[32167] Fix | Delete
* @type {Record<string, string>}
[32168] Fix | Delete
*/
[32169] Fix | Delete
const renamedFeatures = {
[32170] Fix | Delete
gradients: 'gradient'
[32171] Fix | Delete
};
[32172] Fix | Delete
[32173] Fix | Delete
/**
[32174] Fix | Delete
* A utility function used to remove one or more paths from a style object.
[32175] Fix | Delete
* Works in a way similar to Lodash's `omit()`. See unit tests and examples below.
[32176] Fix | Delete
*
[32177] Fix | Delete
* It supports a single string path:
[32178] Fix | Delete
*
[32179] Fix | Delete
* ```
[32180] Fix | Delete
* omitStyle( { color: 'red' }, 'color' ); // {}
[32181] Fix | Delete
* ```
[32182] Fix | Delete
*
[32183] Fix | Delete
* or an array of paths:
[32184] Fix | Delete
*
[32185] Fix | Delete
* ```
[32186] Fix | Delete
* omitStyle( { color: 'red', background: '#fff' }, [ 'color', 'background' ] ); // {}
[32187] Fix | Delete
* ```
[32188] Fix | Delete
*
[32189] Fix | Delete
* It also allows you to specify paths at multiple levels in a string.
[32190] Fix | Delete
*
[32191] Fix | Delete
* ```
[32192] Fix | Delete
* omitStyle( { typography: { textDecoration: 'underline' } }, 'typography.textDecoration' ); // {}
[32193] Fix | Delete
* ```
[32194] Fix | Delete
*
[32195] Fix | Delete
* You can remove multiple paths at the same time:
[32196] Fix | Delete
*
[32197] Fix | Delete
* ```
[32198] Fix | Delete
* omitStyle(
[32199] Fix | Delete
* {
[32200] Fix | Delete
* typography: {
[32201] Fix | Delete
* textDecoration: 'underline',
[32202] Fix | Delete
* textTransform: 'uppercase',
[32203] Fix | Delete
* }
[32204] Fix | Delete
* },
[32205] Fix | Delete
* [
[32206] Fix | Delete
* 'typography.textDecoration',
[32207] Fix | Delete
* 'typography.textTransform',
[32208] Fix | Delete
* ]
[32209] Fix | Delete
* );
[32210] Fix | Delete
* // {}
[32211] Fix | Delete
* ```
[32212] Fix | Delete
*
[32213] Fix | Delete
* You can also specify nested paths as arrays:
[32214] Fix | Delete
*
[32215] Fix | Delete
* ```
[32216] Fix | Delete
* omitStyle(
[32217] Fix | Delete
* {
[32218] Fix | Delete
* typography: {
[32219] Fix | Delete
* textDecoration: 'underline',
[32220] Fix | Delete
* textTransform: 'uppercase',
[32221] Fix | Delete
* }
[32222] Fix | Delete
* },
[32223] Fix | Delete
* [
[32224] Fix | Delete
* [ 'typography', 'textDecoration' ],
[32225] Fix | Delete
* [ 'typography', 'textTransform' ],
[32226] Fix | Delete
* ]
[32227] Fix | Delete
* );
[32228] Fix | Delete
* // {}
[32229] Fix | Delete
* ```
[32230] Fix | Delete
*
[32231] Fix | Delete
* With regards to nesting of styles, infinite depth is supported:
[32232] Fix | Delete
*
[32233] Fix | Delete
* ```
[32234] Fix | Delete
* omitStyle(
[32235] Fix | Delete
* {
[32236] Fix | Delete
* border: {
[32237] Fix | Delete
* radius: {
[32238] Fix | Delete
* topLeft: '10px',
[32239] Fix | Delete
* topRight: '0.5rem',
[32240] Fix | Delete
* }
[32241] Fix | Delete
* }
[32242] Fix | Delete
* },
[32243] Fix | Delete
* [
[32244] Fix | Delete
* [ 'border', 'radius', 'topRight' ],
[32245] Fix | Delete
* ]
[32246] Fix | Delete
* );
[32247] Fix | Delete
* // { border: { radius: { topLeft: '10px' } } }
[32248] Fix | Delete
* ```
[32249] Fix | Delete
*
[32250] Fix | Delete
* The third argument, `preserveReference`, defines how to treat the input style object.
[32251] Fix | Delete
* It is mostly necessary to properly handle mutation when recursively handling the style object.
[32252] Fix | Delete
* Defaulting to `false`, this will always create a new object, avoiding to mutate `style`.
[32253] Fix | Delete
* However, when recursing, we change that value to `true` in order to work with a single copy
[32254] Fix | Delete
* of the original style object.
[32255] Fix | Delete
*
[32256] Fix | Delete
* @see https://lodash.com/docs/4.17.15#omit
[32257] Fix | Delete
*
[32258] Fix | Delete
* @param {Object} style Styles object.
[32259] Fix | Delete
* @param {Array|string} paths Paths to remove.
[32260] Fix | Delete
* @param {boolean} preserveReference True to mutate the `style` object, false otherwise.
[32261] Fix | Delete
* @return {Object} Styles object with the specified paths removed.
[32262] Fix | Delete
*/
[32263] Fix | Delete
function omitStyle(style, paths, preserveReference = false) {
[32264] Fix | Delete
if (!style) {
[32265] Fix | Delete
return style;
[32266] Fix | Delete
}
[32267] Fix | Delete
let newStyle = style;
[32268] Fix | Delete
if (!preserveReference) {
[32269] Fix | Delete
newStyle = JSON.parse(JSON.stringify(style));
[32270] Fix | Delete
}
[32271] Fix | Delete
if (!Array.isArray(paths)) {
[32272] Fix | Delete
paths = [paths];
[32273] Fix | Delete
}
[32274] Fix | Delete
paths.forEach(path => {
[32275] Fix | Delete
if (!Array.isArray(path)) {
[32276] Fix | Delete
path = path.split('.');
[32277] Fix | Delete
}
[32278] Fix | Delete
if (path.length > 1) {
[32279] Fix | Delete
const [firstSubpath, ...restPath] = path;
[32280] Fix | Delete
omitStyle(newStyle[firstSubpath], [restPath], true);
[32281] Fix | Delete
} else if (path.length === 1) {
[32282] Fix | Delete
delete newStyle[path[0]];
[32283] Fix | Delete
}
[32284] Fix | Delete
});
[32285] Fix | Delete
return newStyle;
[32286] Fix | Delete
}
[32287] Fix | Delete
[32288] Fix | Delete
/**
[32289] Fix | Delete
* Override props assigned to save component to inject the CSS variables definition.
[32290] Fix | Delete
*
[32291] Fix | Delete
* @param {Object} props Additional props applied to save element.
[32292] Fix | Delete
* @param {Object|string} blockNameOrType Block type.
[32293] Fix | Delete
* @param {Object} attributes Block attributes.
[32294] Fix | Delete
* @param {?Record<string, string[]>} skipPaths An object of keys and paths to skip serialization.
[32295] Fix | Delete
*
[32296] Fix | Delete
* @return {Object} Filtered props applied to save element.
[32297] Fix | Delete
*/
[32298] Fix | Delete
function style_addSaveProps(props, blockNameOrType, attributes, skipPaths = skipSerializationPathsSave) {
[32299] Fix | Delete
if (!hasStyleSupport(blockNameOrType)) {
[32300] Fix | Delete
return props;
[32301] Fix | Delete
}
[32302] Fix | Delete
let {
[32303] Fix | Delete
style
[32304] Fix | Delete
} = attributes;
[32305] Fix | Delete
Object.entries(skipPaths).forEach(([indicator, path]) => {
[32306] Fix | Delete
const skipSerialization = skipSerializationPathsSaveChecks[indicator] || (0,external_wp_blocks_namespaceObject.getBlockSupport)(blockNameOrType, indicator);
[32307] Fix | Delete
if (skipSerialization === true) {
[32308] Fix | Delete
style = omitStyle(style, path);
[32309] Fix | Delete
}
[32310] Fix | Delete
if (Array.isArray(skipSerialization)) {
[32311] Fix | Delete
skipSerialization.forEach(featureName => {
[32312] Fix | Delete
const feature = renamedFeatures[featureName] || featureName;
[32313] Fix | Delete
style = omitStyle(style, [[...path, feature]]);
[32314] Fix | Delete
});
[32315] Fix | Delete
}
[32316] Fix | Delete
});
[32317] Fix | Delete
props.style = {
[32318] Fix | Delete
...getInlineStyles(style),
[32319] Fix | Delete
...props.style
[32320] Fix | Delete
};
[32321] Fix | Delete
return props;
[32322] Fix | Delete
}
[32323] Fix | Delete
function BlockStyleControls({
[32324] Fix | Delete
clientId,
[32325] Fix | Delete
name,
[32326] Fix | Delete
setAttributes,
[32327] Fix | Delete
__unstableParentLayout
[32328] Fix | Delete
}) {
[32329] Fix | Delete
const settings = useBlockSettings(name, __unstableParentLayout);
[32330] Fix | Delete
const blockEditingMode = useBlockEditingMode();
[32331] Fix | Delete
const passedProps = {
[32332] Fix | Delete
clientId,
[32333] Fix | Delete
name,
[32334] Fix | Delete
setAttributes,
[32335] Fix | Delete
settings: {
[32336] Fix | Delete
...settings,
[32337] Fix | Delete
typography: {
[32338] Fix | Delete
...settings.typography,
[32339] Fix | Delete
// The text alignment UI for individual blocks is rendered in
[32340] Fix | Delete
// the block toolbar, so disable it here.
[32341] Fix | Delete
textAlign: false
[32342] Fix | Delete
}
[32343] Fix | Delete
}
[32344] Fix | Delete
};
[32345] Fix | Delete
if (blockEditingMode !== 'default') {
[32346] Fix | Delete
return null;
[32347] Fix | Delete
}
[32348] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[32349] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorEdit, {
[32350] Fix | Delete
...passedProps
[32351] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BackgroundImagePanel, {
[32352] Fix | Delete
...passedProps
[32353] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(typography_TypographyPanel, {
[32354] Fix | Delete
...passedProps
[32355] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(border_BorderPanel, {
[32356] Fix | Delete
...passedProps
[32357] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(dimensions_DimensionsPanel, {
[32358] Fix | Delete
...passedProps
[32359] Fix | Delete
})]
[32360] Fix | Delete
});
[32361] Fix | Delete
}
[32362] Fix | Delete
/* harmony default export */ const style = ({
[32363] Fix | Delete
edit: BlockStyleControls,
[32364] Fix | Delete
hasSupport: hasStyleSupport,
[32365] Fix | Delete
addSaveProps: style_addSaveProps,
[32366] Fix | Delete
attributeKeys: ['style'],
[32367] Fix | Delete
useBlockProps: style_useBlockProps
[32368] Fix | Delete
});
[32369] Fix | Delete
[32370] Fix | Delete
// Defines which element types are supported, including their hover styles or
[32371] Fix | Delete
// any other elements that have been included under a single element type
[32372] Fix | Delete
// e.g. heading and h1-h6.
[32373] Fix | Delete
const elementTypes = [{
[32374] Fix | Delete
elementType: 'button'
[32375] Fix | Delete
}, {
[32376] Fix | Delete
elementType: 'link',
[32377] Fix | Delete
pseudo: [':hover']
[32378] Fix | Delete
}, {
[32379] Fix | Delete
elementType: 'heading',
[32380] Fix | Delete
elements: ['h1', 'h2', 'h3', 'h4', 'h5', 'h6']
[32381] Fix | Delete
}];
[32382] Fix | Delete
function style_useBlockProps({
[32383] Fix | Delete
name,
[32384] Fix | Delete
style
[32385] Fix | Delete
}) {
[32386] Fix | Delete
const blockElementsContainerIdentifier = `wp-elements-${(0,external_wp_compose_namespaceObject.useInstanceId)(style_useBlockProps)}`;
[32387] Fix | Delete
[32388] Fix | Delete
// The .editor-styles-wrapper selector is required on elements styles. As it is
[32389] Fix | Delete
// added to all other editor styles, not providing it causes reset and global
[32390] Fix | Delete
// styles to override element styles because of higher specificity.
[32391] Fix | Delete
const baseElementSelector = `.editor-styles-wrapper .${blockElementsContainerIdentifier}`;
[32392] Fix | Delete
const blockElementStyles = style?.elements;
[32393] Fix | Delete
const styles = (0,external_wp_element_namespaceObject.useMemo)(() => {
[32394] Fix | Delete
if (!blockElementStyles) {
[32395] Fix | Delete
return;
[32396] Fix | Delete
}
[32397] Fix | Delete
const elementCSSRules = [];
[32398] Fix | Delete
elementTypes.forEach(({
[32399] Fix | Delete
elementType,
[32400] Fix | Delete
pseudo,
[32401] Fix | Delete
elements
[32402] Fix | Delete
}) => {
[32403] Fix | Delete
const skipSerialization = shouldSkipSerialization(name, COLOR_SUPPORT_KEY, elementType);
[32404] Fix | Delete
if (skipSerialization) {
[32405] Fix | Delete
return;
[32406] Fix | Delete
}
[32407] Fix | Delete
const elementStyles = blockElementStyles?.[elementType];
[32408] Fix | Delete
[32409] Fix | Delete
// Process primary element type styles.
[32410] Fix | Delete
if (elementStyles) {
[32411] Fix | Delete
const selector = scopeSelector(baseElementSelector, external_wp_blocks_namespaceObject.__EXPERIMENTAL_ELEMENTS[elementType]);
[32412] Fix | Delete
elementCSSRules.push((0,external_wp_styleEngine_namespaceObject.compileCSS)(elementStyles, {
[32413] Fix | Delete
selector
[32414] Fix | Delete
}));
[32415] Fix | Delete
[32416] Fix | Delete
// Process any interactive states for the element type.
[32417] Fix | Delete
if (pseudo) {
[32418] Fix | Delete
pseudo.forEach(pseudoSelector => {
[32419] Fix | Delete
if (elementStyles[pseudoSelector]) {
[32420] Fix | Delete
elementCSSRules.push((0,external_wp_styleEngine_namespaceObject.compileCSS)(elementStyles[pseudoSelector], {
[32421] Fix | Delete
selector: scopeSelector(baseElementSelector, `${external_wp_blocks_namespaceObject.__EXPERIMENTAL_ELEMENTS[elementType]}${pseudoSelector}`)
[32422] Fix | Delete
}));
[32423] Fix | Delete
}
[32424] Fix | Delete
});
[32425] Fix | Delete
}
[32426] Fix | Delete
}
[32427] Fix | Delete
[32428] Fix | Delete
// Process related elements e.g. h1-h6 for headings
[32429] Fix | Delete
if (elements) {
[32430] Fix | Delete
elements.forEach(element => {
[32431] Fix | Delete
if (blockElementStyles[element]) {
[32432] Fix | Delete
elementCSSRules.push((0,external_wp_styleEngine_namespaceObject.compileCSS)(blockElementStyles[element], {
[32433] Fix | Delete
selector: scopeSelector(baseElementSelector, external_wp_blocks_namespaceObject.__EXPERIMENTAL_ELEMENTS[element])
[32434] Fix | Delete
}));
[32435] Fix | Delete
}
[32436] Fix | Delete
});
[32437] Fix | Delete
}
[32438] Fix | Delete
});
[32439] Fix | Delete
return elementCSSRules.length > 0 ? elementCSSRules.join('') : undefined;
[32440] Fix | Delete
}, [baseElementSelector, blockElementStyles, name]);
[32441] Fix | Delete
useStyleOverride({
[32442] Fix | Delete
css: styles
[32443] Fix | Delete
});
[32444] Fix | Delete
return style_addSaveProps({
[32445] Fix | Delete
className: blockElementsContainerIdentifier
[32446] Fix | Delete
}, name, {
[32447] Fix | Delete
style
[32448] Fix | Delete
}, skipSerializationPathsEdit);
[32449] Fix | Delete
}
[32450] Fix | Delete
(0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/style/addAttribute', style_addAttribute);
[32451] Fix | Delete
[32452] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/settings.js
[32453] Fix | Delete
/**
[32454] Fix | Delete
* WordPress dependencies
[32455] Fix | Delete
*/
[32456] Fix | Delete
[32457] Fix | Delete
[32458] Fix | Delete
const hasSettingsSupport = blockType => (0,external_wp_blocks_namespaceObject.hasBlockSupport)(blockType, '__experimentalSettings', false);
[32459] Fix | Delete
function settings_addAttribute(settings) {
[32460] Fix | Delete
if (!hasSettingsSupport(settings)) {
[32461] Fix | Delete
return settings;
[32462] Fix | Delete
}
[32463] Fix | Delete
[32464] Fix | Delete
// Allow blocks to specify their own attribute definition with default values if needed.
[32465] Fix | Delete
if (!settings?.attributes?.settings) {
[32466] Fix | Delete
settings.attributes = {
[32467] Fix | Delete
...settings.attributes,
[32468] Fix | Delete
settings: {
[32469] Fix | Delete
type: 'object'
[32470] Fix | Delete
}
[32471] Fix | Delete
};
[32472] Fix | Delete
}
[32473] Fix | Delete
return settings;
[32474] Fix | Delete
}
[32475] Fix | Delete
(0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/settings/addAttribute', settings_addAttribute);
[32476] Fix | Delete
[32477] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/filter.js
[32478] Fix | Delete
/**
[32479] Fix | Delete
* WordPress dependencies
[32480] Fix | Delete
*/
[32481] Fix | Delete
[32482] Fix | Delete
[32483] Fix | Delete
const filter = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[32484] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[32485] Fix | Delete
viewBox: "0 0 24 24",
[32486] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[32487] Fix | Delete
d: "M12 4 4 19h16L12 4zm0 3.2 5.5 10.3H12V7.2z"
[32488] Fix | Delete
})
[32489] Fix | Delete
});
[32490] Fix | Delete
/* harmony default export */ const library_filter = (filter);
[32491] Fix | Delete
[32492] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/duotone-control/index.js
[32493] Fix | Delete
/**
[32494] Fix | Delete
* WordPress dependencies
[32495] Fix | Delete
*/
[32496] Fix | Delete
[32497] Fix | Delete
[32498] Fix | Delete
[32499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function