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
}
[71000] Fix | Delete
[71001] Fix | Delete
if (typeof props.className === 'string') {
[71002] Fix | Delete
className = emotion_utils_browser_esm_getRegisteredStyles(cache.registered, classInterpolations, props.className);
[71003] Fix | Delete
} else if (props.className != null) {
[71004] Fix | Delete
className = props.className + " ";
[71005] Fix | Delete
}
[71006] Fix | Delete
[71007] Fix | Delete
var serialized = emotion_serialize_browser_esm_serializeStyles(styles.concat(classInterpolations), cache.registered, mergedProps);
[71008] Fix | Delete
className += cache.key + "-" + serialized.name;
[71009] Fix | Delete
[71010] Fix | Delete
if (targetClassName !== undefined) {
[71011] Fix | Delete
className += " " + targetClassName;
[71012] Fix | Delete
}
[71013] Fix | Delete
[71014] Fix | Delete
var finalShouldForwardProp = shouldUseAs && shouldForwardProp === undefined ? getDefaultShouldForwardProp(FinalTag) : defaultShouldForwardProp;
[71015] Fix | Delete
var newProps = {};
[71016] Fix | Delete
[71017] Fix | Delete
for (var _key in props) {
[71018] Fix | Delete
if (shouldUseAs && _key === 'as') continue;
[71019] Fix | Delete
[71020] Fix | Delete
if ( // $FlowFixMe
[71021] Fix | Delete
finalShouldForwardProp(_key)) {
[71022] Fix | Delete
newProps[_key] = props[_key];
[71023] Fix | Delete
}
[71024] Fix | Delete
}
[71025] Fix | Delete
[71026] Fix | Delete
newProps.className = className;
[71027] Fix | Delete
newProps.ref = ref;
[71028] Fix | Delete
return /*#__PURE__*/(0,external_React_.createElement)(external_React_.Fragment, null, /*#__PURE__*/(0,external_React_.createElement)(emotion_styled_base_browser_esm_Insertion, {
[71029] Fix | Delete
cache: cache,
[71030] Fix | Delete
serialized: serialized,
[71031] Fix | Delete
isStringTag: typeof FinalTag === 'string'
[71032] Fix | Delete
}), /*#__PURE__*/(0,external_React_.createElement)(FinalTag, newProps));
[71033] Fix | Delete
});
[71034] Fix | Delete
Styled.displayName = identifierName !== undefined ? identifierName : "Styled(" + (typeof baseTag === 'string' ? baseTag : baseTag.displayName || baseTag.name || 'Component') + ")";
[71035] Fix | Delete
Styled.defaultProps = tag.defaultProps;
[71036] Fix | Delete
Styled.__emotion_real = Styled;
[71037] Fix | Delete
Styled.__emotion_base = baseTag;
[71038] Fix | Delete
Styled.__emotion_styles = styles;
[71039] Fix | Delete
Styled.__emotion_forwardProp = shouldForwardProp;
[71040] Fix | Delete
Object.defineProperty(Styled, 'toString', {
[71041] Fix | Delete
value: function value() {
[71042] Fix | Delete
if (targetClassName === undefined && "production" !== 'production') {} // $FlowFixMe: coerce undefined to string
[71043] Fix | Delete
[71044] Fix | Delete
[71045] Fix | Delete
return "." + targetClassName;
[71046] Fix | Delete
}
[71047] Fix | Delete
});
[71048] Fix | Delete
[71049] Fix | Delete
Styled.withComponent = function (nextTag, nextOptions) {
[71050] Fix | Delete
return createStyled(nextTag, extends_extends({}, options, nextOptions, {
[71051] Fix | Delete
shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
[71052] Fix | Delete
})).apply(void 0, styles);
[71053] Fix | Delete
};
[71054] Fix | Delete
[71055] Fix | Delete
return Styled;
[71056] Fix | Delete
};
[71057] Fix | Delete
};
[71058] Fix | Delete
[71059] Fix | Delete
/* harmony default export */ const emotion_styled_base_browser_esm = (createStyled);
[71060] Fix | Delete
[71061] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/dimensions-tool/width-height-tool.js
[71062] Fix | Delete
[71063] Fix | Delete
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
[71064] Fix | Delete
/**
[71065] Fix | Delete
* External dependencies
[71066] Fix | Delete
*/
[71067] Fix | Delete
[71068] Fix | Delete
/**
[71069] Fix | Delete
* WordPress dependencies
[71070] Fix | Delete
*/
[71071] Fix | Delete
[71072] Fix | Delete
[71073] Fix | Delete
[71074] Fix | Delete
[71075] Fix | Delete
[71076] Fix | Delete
const SingleColumnToolsPanelItem = /*#__PURE__*/emotion_styled_base_browser_esm(external_wp_components_namespaceObject.__experimentalToolsPanelItem, true ? {
[71077] Fix | Delete
target: "ef8pe3d0"
[71078] Fix | Delete
} : 0)( true ? {
[71079] Fix | Delete
name: "957xgf",
[71080] Fix | Delete
styles: "grid-column:span 1"
[71081] Fix | Delete
} : 0);
[71082] Fix | Delete
[71083] Fix | Delete
/**
[71084] Fix | Delete
* @typedef {import('@wordpress/components/build-types/unit-control/types').WPUnitControlUnit} WPUnitControlUnit
[71085] Fix | Delete
*/
[71086] Fix | Delete
[71087] Fix | Delete
/**
[71088] Fix | Delete
* @typedef {Object} WidthHeightToolValue
[71089] Fix | Delete
* @property {string} [width] Width CSS value.
[71090] Fix | Delete
* @property {string} [height] Height CSS value.
[71091] Fix | Delete
*/
[71092] Fix | Delete
[71093] Fix | Delete
/**
[71094] Fix | Delete
* @callback WidthHeightToolOnChange
[71095] Fix | Delete
* @param {WidthHeightToolValue} nextValue Next dimensions value.
[71096] Fix | Delete
* @return {void}
[71097] Fix | Delete
*/
[71098] Fix | Delete
[71099] Fix | Delete
/**
[71100] Fix | Delete
* @typedef {Object} WidthHeightToolProps
[71101] Fix | Delete
* @property {string} [panelId] ID of the panel that contains the controls.
[71102] Fix | Delete
* @property {WidthHeightToolValue} [value] Current dimensions values.
[71103] Fix | Delete
* @property {WidthHeightToolOnChange} [onChange] Callback to update the dimensions values.
[71104] Fix | Delete
* @property {WPUnitControlUnit[]} [units] Units options.
[71105] Fix | Delete
* @property {boolean} [isShownByDefault] Whether the panel is shown by default.
[71106] Fix | Delete
*/
[71107] Fix | Delete
[71108] Fix | Delete
/**
[71109] Fix | Delete
* Component that renders controls to edit the dimensions of an image or container.
[71110] Fix | Delete
*
[71111] Fix | Delete
* @param {WidthHeightToolProps} props The component props.
[71112] Fix | Delete
*
[71113] Fix | Delete
* @return {import('react').ReactElement} The width and height tool.
[71114] Fix | Delete
*/
[71115] Fix | Delete
function WidthHeightTool({
[71116] Fix | Delete
panelId,
[71117] Fix | Delete
value = {},
[71118] Fix | Delete
onChange = () => {},
[71119] Fix | Delete
units,
[71120] Fix | Delete
isShownByDefault = true
[71121] Fix | Delete
}) {
[71122] Fix | Delete
var _value$width, _value$height;
[71123] Fix | Delete
// null, undefined, and 'auto' all represent the default value.
[71124] Fix | Delete
const width = value.width === 'auto' ? '' : (_value$width = value.width) !== null && _value$width !== void 0 ? _value$width : '';
[71125] Fix | Delete
const height = value.height === 'auto' ? '' : (_value$height = value.height) !== null && _value$height !== void 0 ? _value$height : '';
[71126] Fix | Delete
const onDimensionChange = dimension => nextDimension => {
[71127] Fix | Delete
const nextValue = {
[71128] Fix | Delete
...value
[71129] Fix | Delete
};
[71130] Fix | Delete
// Empty strings or undefined may be passed and both represent removing the value.
[71131] Fix | Delete
if (!nextDimension) {
[71132] Fix | Delete
delete nextValue[dimension];
[71133] Fix | Delete
} else {
[71134] Fix | Delete
nextValue[dimension] = nextDimension;
[71135] Fix | Delete
}
[71136] Fix | Delete
onChange(nextValue);
[71137] Fix | Delete
};
[71138] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[71139] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SingleColumnToolsPanelItem, {
[71140] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Width'),
[71141] Fix | Delete
isShownByDefault: isShownByDefault,
[71142] Fix | Delete
hasValue: () => width !== '',
[71143] Fix | Delete
onDeselect: onDimensionChange('width'),
[71144] Fix | Delete
panelId: panelId,
[71145] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalUnitControl, {
[71146] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Width'),
[71147] Fix | Delete
placeholder: (0,external_wp_i18n_namespaceObject.__)('Auto'),
[71148] Fix | Delete
labelPosition: "top",
[71149] Fix | Delete
units: units,
[71150] Fix | Delete
min: 0,
[71151] Fix | Delete
value: width,
[71152] Fix | Delete
onChange: onDimensionChange('width'),
[71153] Fix | Delete
size: "__unstable-large"
[71154] Fix | Delete
})
[71155] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SingleColumnToolsPanelItem, {
[71156] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Height'),
[71157] Fix | Delete
isShownByDefault: isShownByDefault,
[71158] Fix | Delete
hasValue: () => height !== '',
[71159] Fix | Delete
onDeselect: onDimensionChange('height'),
[71160] Fix | Delete
panelId: panelId,
[71161] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalUnitControl, {
[71162] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Height'),
[71163] Fix | Delete
placeholder: (0,external_wp_i18n_namespaceObject.__)('Auto'),
[71164] Fix | Delete
labelPosition: "top",
[71165] Fix | Delete
units: units,
[71166] Fix | Delete
min: 0,
[71167] Fix | Delete
value: height,
[71168] Fix | Delete
onChange: onDimensionChange('height'),
[71169] Fix | Delete
size: "__unstable-large"
[71170] Fix | Delete
})
[71171] Fix | Delete
})]
[71172] Fix | Delete
});
[71173] Fix | Delete
}
[71174] Fix | Delete
[71175] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/dimensions-tool/index.js
[71176] Fix | Delete
/**
[71177] Fix | Delete
* WordPress dependencies
[71178] Fix | Delete
*/
[71179] Fix | Delete
[71180] Fix | Delete
[71181] Fix | Delete
/**
[71182] Fix | Delete
* Internal dependencies
[71183] Fix | Delete
*/
[71184] Fix | Delete
[71185] Fix | Delete
[71186] Fix | Delete
[71187] Fix | Delete
[71188] Fix | Delete
/**
[71189] Fix | Delete
* @typedef {import('@wordpress/components/build-types/select-control/types').SelectControlProps} SelectControlProps
[71190] Fix | Delete
*/
[71191] Fix | Delete
[71192] Fix | Delete
/**
[71193] Fix | Delete
* @typedef {import('@wordpress/components/build-types/unit-control/types').WPUnitControlUnit} WPUnitControlUnit
[71194] Fix | Delete
*/
[71195] Fix | Delete
[71196] Fix | Delete
/**
[71197] Fix | Delete
* @typedef {Object} Dimensions
[71198] Fix | Delete
* @property {string} [width] CSS width property.
[71199] Fix | Delete
* @property {string} [height] CSS height property.
[71200] Fix | Delete
* @property {string} [scale] CSS object-fit property.
[71201] Fix | Delete
* @property {string} [aspectRatio] CSS aspect-ratio property.
[71202] Fix | Delete
*/
[71203] Fix | Delete
[71204] Fix | Delete
/**
[71205] Fix | Delete
* @callback DimensionsControlsOnChange
[71206] Fix | Delete
* @param {Dimensions} nextValue
[71207] Fix | Delete
* @return {void}
[71208] Fix | Delete
*/
[71209] Fix | Delete
[71210] Fix | Delete
/**
[71211] Fix | Delete
* @typedef {Object} DimensionsControlsProps
[71212] Fix | Delete
* @property {string} [panelId] ID of the panel that contains the controls.
[71213] Fix | Delete
* @property {Dimensions} [value] Current dimensions values.
[71214] Fix | Delete
* @property {DimensionsControlsOnChange} [onChange] Callback to update the dimensions values.
[71215] Fix | Delete
* @property {SelectControlProps[]} [aspectRatioOptions] Aspect ratio options.
[71216] Fix | Delete
* @property {SelectControlProps[]} [scaleOptions] Scale options.
[71217] Fix | Delete
* @property {WPUnitControlUnit[]} [unitsOptions] Units options.
[71218] Fix | Delete
*/
[71219] Fix | Delete
[71220] Fix | Delete
/**
[71221] Fix | Delete
* Component that renders controls to edit the dimensions of an image or container.
[71222] Fix | Delete
*
[71223] Fix | Delete
* @param {DimensionsControlsProps} props The component props.
[71224] Fix | Delete
*
[71225] Fix | Delete
* @return {Element} The dimensions controls.
[71226] Fix | Delete
*/
[71227] Fix | Delete
[71228] Fix | Delete
[71229] Fix | Delete
[71230] Fix | Delete
function DimensionsTool({
[71231] Fix | Delete
panelId,
[71232] Fix | Delete
value = {},
[71233] Fix | Delete
onChange = () => {},
[71234] Fix | Delete
aspectRatioOptions,
[71235] Fix | Delete
// Default options handled by AspectRatioTool.
[71236] Fix | Delete
defaultAspectRatio = 'auto',
[71237] Fix | Delete
// Match CSS default value for aspect-ratio.
[71238] Fix | Delete
scaleOptions,
[71239] Fix | Delete
// Default options handled by ScaleTool.
[71240] Fix | Delete
defaultScale = 'fill',
[71241] Fix | Delete
// Match CSS default value for object-fit.
[71242] Fix | Delete
unitsOptions // Default options handled by UnitControl.
[71243] Fix | Delete
}) {
[71244] Fix | Delete
// Coerce undefined and CSS default values to be null.
[71245] Fix | Delete
const width = value.width === undefined || value.width === 'auto' ? null : value.width;
[71246] Fix | Delete
const height = value.height === undefined || value.height === 'auto' ? null : value.height;
[71247] Fix | Delete
const aspectRatio = value.aspectRatio === undefined || value.aspectRatio === 'auto' ? null : value.aspectRatio;
[71248] Fix | Delete
const scale = value.scale === undefined || value.scale === 'fill' ? null : value.scale;
[71249] Fix | Delete
[71250] Fix | Delete
// Keep track of state internally, so when the value is cleared by means
[71251] Fix | Delete
// other than directly editing that field, it's easier to restore the
[71252] Fix | Delete
// previous value.
[71253] Fix | Delete
const [lastScale, setLastScale] = (0,external_wp_element_namespaceObject.useState)(scale);
[71254] Fix | Delete
const [lastAspectRatio, setLastAspectRatio] = (0,external_wp_element_namespaceObject.useState)(aspectRatio);
[71255] Fix | Delete
[71256] Fix | Delete
// 'custom' is not a valid value for CSS aspect-ratio, but it is used in the
[71257] Fix | Delete
// dropdown to indicate that setting both the width and height is the same
[71258] Fix | Delete
// as a custom aspect ratio.
[71259] Fix | Delete
const aspectRatioValue = width && height ? 'custom' : lastAspectRatio;
[71260] Fix | Delete
const showScaleControl = aspectRatio || width && height;
[71261] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[71262] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AspectRatioTool, {
[71263] Fix | Delete
panelId: panelId,
[71264] Fix | Delete
options: aspectRatioOptions,
[71265] Fix | Delete
defaultValue: defaultAspectRatio,
[71266] Fix | Delete
value: aspectRatioValue,
[71267] Fix | Delete
onChange: nextAspectRatio => {
[71268] Fix | Delete
const nextValue = {
[71269] Fix | Delete
...value
[71270] Fix | Delete
};
[71271] Fix | Delete
[71272] Fix | Delete
// 'auto' is CSS default, so it gets treated as null.
[71273] Fix | Delete
nextAspectRatio = nextAspectRatio === 'auto' ? null : nextAspectRatio;
[71274] Fix | Delete
setLastAspectRatio(nextAspectRatio);
[71275] Fix | Delete
[71276] Fix | Delete
// Update aspectRatio.
[71277] Fix | Delete
if (!nextAspectRatio) {
[71278] Fix | Delete
delete nextValue.aspectRatio;
[71279] Fix | Delete
} else {
[71280] Fix | Delete
nextValue.aspectRatio = nextAspectRatio;
[71281] Fix | Delete
}
[71282] Fix | Delete
[71283] Fix | Delete
// Auto-update scale.
[71284] Fix | Delete
if (!nextAspectRatio) {
[71285] Fix | Delete
delete nextValue.scale;
[71286] Fix | Delete
} else if (lastScale) {
[71287] Fix | Delete
nextValue.scale = lastScale;
[71288] Fix | Delete
} else {
[71289] Fix | Delete
nextValue.scale = defaultScale;
[71290] Fix | Delete
setLastScale(defaultScale);
[71291] Fix | Delete
}
[71292] Fix | Delete
[71293] Fix | Delete
// Auto-update width and height.
[71294] Fix | Delete
if ('custom' !== nextAspectRatio && width && height) {
[71295] Fix | Delete
delete nextValue.height;
[71296] Fix | Delete
}
[71297] Fix | Delete
onChange(nextValue);
[71298] Fix | Delete
}
[71299] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WidthHeightTool, {
[71300] Fix | Delete
panelId: panelId,
[71301] Fix | Delete
units: unitsOptions,
[71302] Fix | Delete
value: {
[71303] Fix | Delete
width,
[71304] Fix | Delete
height
[71305] Fix | Delete
},
[71306] Fix | Delete
onChange: ({
[71307] Fix | Delete
width: nextWidth,
[71308] Fix | Delete
height: nextHeight
[71309] Fix | Delete
}) => {
[71310] Fix | Delete
const nextValue = {
[71311] Fix | Delete
...value
[71312] Fix | Delete
};
[71313] Fix | Delete
[71314] Fix | Delete
// 'auto' is CSS default, so it gets treated as null.
[71315] Fix | Delete
nextWidth = nextWidth === 'auto' ? null : nextWidth;
[71316] Fix | Delete
nextHeight = nextHeight === 'auto' ? null : nextHeight;
[71317] Fix | Delete
[71318] Fix | Delete
// Update width.
[71319] Fix | Delete
if (!nextWidth) {
[71320] Fix | Delete
delete nextValue.width;
[71321] Fix | Delete
} else {
[71322] Fix | Delete
nextValue.width = nextWidth;
[71323] Fix | Delete
}
[71324] Fix | Delete
[71325] Fix | Delete
// Update height.
[71326] Fix | Delete
if (!nextHeight) {
[71327] Fix | Delete
delete nextValue.height;
[71328] Fix | Delete
} else {
[71329] Fix | Delete
nextValue.height = nextHeight;
[71330] Fix | Delete
}
[71331] Fix | Delete
[71332] Fix | Delete
// Auto-update aspectRatio.
[71333] Fix | Delete
if (nextWidth && nextHeight) {
[71334] Fix | Delete
delete nextValue.aspectRatio;
[71335] Fix | Delete
} else if (lastAspectRatio) {
[71336] Fix | Delete
nextValue.aspectRatio = lastAspectRatio;
[71337] Fix | Delete
} else {
[71338] Fix | Delete
// No setting defaultAspectRatio here, because
[71339] Fix | Delete
// aspectRatio is optional in this scenario,
[71340] Fix | Delete
// unlike scale.
[71341] Fix | Delete
}
[71342] Fix | Delete
[71343] Fix | Delete
// Auto-update scale.
[71344] Fix | Delete
if (!lastAspectRatio && !!nextWidth !== !!nextHeight) {
[71345] Fix | Delete
delete nextValue.scale;
[71346] Fix | Delete
} else if (lastScale) {
[71347] Fix | Delete
nextValue.scale = lastScale;
[71348] Fix | Delete
} else {
[71349] Fix | Delete
nextValue.scale = defaultScale;
[71350] Fix | Delete
setLastScale(defaultScale);
[71351] Fix | Delete
}
[71352] Fix | Delete
onChange(nextValue);
[71353] Fix | Delete
}
[71354] Fix | Delete
}), showScaleControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ScaleTool, {
[71355] Fix | Delete
panelId: panelId,
[71356] Fix | Delete
options: scaleOptions,
[71357] Fix | Delete
defaultValue: defaultScale,
[71358] Fix | Delete
value: lastScale,
[71359] Fix | Delete
onChange: nextScale => {
[71360] Fix | Delete
const nextValue = {
[71361] Fix | Delete
...value
[71362] Fix | Delete
};
[71363] Fix | Delete
[71364] Fix | Delete
// 'fill' is CSS default, so it gets treated as null.
[71365] Fix | Delete
nextScale = nextScale === 'fill' ? null : nextScale;
[71366] Fix | Delete
setLastScale(nextScale);
[71367] Fix | Delete
[71368] Fix | Delete
// Update scale.
[71369] Fix | Delete
if (!nextScale) {
[71370] Fix | Delete
delete nextValue.scale;
[71371] Fix | Delete
} else {
[71372] Fix | Delete
nextValue.scale = nextScale;
[71373] Fix | Delete
}
[71374] Fix | Delete
onChange(nextValue);
[71375] Fix | Delete
}
[71376] Fix | Delete
})]
[71377] Fix | Delete
});
[71378] Fix | Delete
}
[71379] Fix | Delete
/* harmony default export */ const dimensions_tool = (DimensionsTool);
[71380] Fix | Delete
[71381] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/resolution-tool/index.js
[71382] Fix | Delete
/**
[71383] Fix | Delete
* WordPress dependencies
[71384] Fix | Delete
*/
[71385] Fix | Delete
[71386] Fix | Delete
[71387] Fix | Delete
[71388] Fix | Delete
const DEFAULT_SIZE_OPTIONS = [{
[71389] Fix | Delete
label: (0,external_wp_i18n_namespaceObject._x)('Thumbnail', 'Image size option for resolution control'),
[71390] Fix | Delete
value: 'thumbnail'
[71391] Fix | Delete
}, {
[71392] Fix | Delete
label: (0,external_wp_i18n_namespaceObject._x)('Medium', 'Image size option for resolution control'),
[71393] Fix | Delete
value: 'medium'
[71394] Fix | Delete
}, {
[71395] Fix | Delete
label: (0,external_wp_i18n_namespaceObject._x)('Large', 'Image size option for resolution control'),
[71396] Fix | Delete
value: 'large'
[71397] Fix | Delete
}, {
[71398] Fix | Delete
label: (0,external_wp_i18n_namespaceObject._x)('Full Size', 'Image size option for resolution control'),
[71399] Fix | Delete
value: 'full'
[71400] Fix | Delete
}];
[71401] Fix | Delete
function ResolutionTool({
[71402] Fix | Delete
panelId,
[71403] Fix | Delete
value,
[71404] Fix | Delete
onChange,
[71405] Fix | Delete
options = DEFAULT_SIZE_OPTIONS,
[71406] Fix | Delete
defaultValue = DEFAULT_SIZE_OPTIONS[0].value,
[71407] Fix | Delete
isShownByDefault = true
[71408] Fix | Delete
}) {
[71409] Fix | Delete
const displayValue = value !== null && value !== void 0 ? value : defaultValue;
[71410] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
[71411] Fix | Delete
hasValue: () => displayValue !== defaultValue,
[71412] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Resolution'),
[71413] Fix | Delete
onDeselect: () => onChange(defaultValue),
[71414] Fix | Delete
isShownByDefault: isShownByDefault,
[71415] Fix | Delete
panelId: panelId,
[71416] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SelectControl, {
[71417] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Resolution'),
[71418] Fix | Delete
value: displayValue,
[71419] Fix | Delete
options: options,
[71420] Fix | Delete
onChange: onChange,
[71421] Fix | Delete
help: (0,external_wp_i18n_namespaceObject.__)('Select the size of the source image.'),
[71422] Fix | Delete
size: "__unstable-large"
[71423] Fix | Delete
})
[71424] Fix | Delete
});
[71425] Fix | Delete
}
[71426] Fix | Delete
[71427] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/private-apis.js
[71428] Fix | Delete
/**
[71429] Fix | Delete
* Internal dependencies
[71430] Fix | Delete
*/
[71431] Fix | Delete
[71432] Fix | Delete
[71433] Fix | Delete
[71434] Fix | Delete
[71435] Fix | Delete
[71436] Fix | Delete
[71437] Fix | Delete
[71438] Fix | Delete
[71439] Fix | Delete
[71440] Fix | Delete
[71441] Fix | Delete
[71442] Fix | Delete
[71443] Fix | Delete
[71444] Fix | Delete
[71445] Fix | Delete
[71446] Fix | Delete
[71447] Fix | Delete
[71448] Fix | Delete
[71449] Fix | Delete
[71450] Fix | Delete
[71451] Fix | Delete
[71452] Fix | Delete
[71453] Fix | Delete
[71454] Fix | Delete
[71455] Fix | Delete
[71456] Fix | Delete
[71457] Fix | Delete
[71458] Fix | Delete
[71459] Fix | Delete
[71460] Fix | Delete
[71461] Fix | Delete
[71462] Fix | Delete
[71463] Fix | Delete
[71464] Fix | Delete
/**
[71465] Fix | Delete
* Private @wordpress/block-editor APIs.
[71466] Fix | Delete
*/
[71467] Fix | Delete
const privateApis = {};
[71468] Fix | Delete
lock(privateApis, {
[71469] Fix | Delete
...global_styles_namespaceObject,
[71470] Fix | Delete
ExperimentalBlockCanvas: ExperimentalBlockCanvas,
[71471] Fix | Delete
ExperimentalBlockEditorProvider: ExperimentalBlockEditorProvider,
[71472] Fix | Delete
getDuotoneFilter: getDuotoneFilter,
[71473] Fix | Delete
getRichTextValues: getRichTextValues,
[71474] Fix | Delete
PrivateInserter: ComposedPrivateInserter,
[71475] Fix | Delete
PrivateQuickInserter: QuickInserter,
[71476] Fix | Delete
extractWords: extractWords,
[71477] Fix | Delete
getNormalizedSearchTerms: getNormalizedSearchTerms,
[71478] Fix | Delete
normalizeString: normalizeString,
[71479] Fix | Delete
PrivateListView: PrivateListView,
[71480] Fix | Delete
ResizableBoxPopover: ResizableBoxPopover,
[71481] Fix | Delete
BlockInfo: block_info_slot_fill,
[71482] Fix | Delete
useHasBlockToolbar: useHasBlockToolbar,
[71483] Fix | Delete
cleanEmptyObject: utils_cleanEmptyObject,
[71484] Fix | Delete
useStyleOverride: useStyleOverride,
[71485] Fix | Delete
BlockQuickNavigation: BlockQuickNavigation,
[71486] Fix | Delete
LayoutStyle: LayoutStyle,
[71487] Fix | Delete
BlockRemovalWarningModal: BlockRemovalWarningModal,
[71488] Fix | Delete
useLayoutClasses: useLayoutClasses,
[71489] Fix | Delete
useLayoutStyles: useLayoutStyles,
[71490] Fix | Delete
DimensionsTool: dimensions_tool,
[71491] Fix | Delete
ResolutionTool: ResolutionTool,
[71492] Fix | Delete
TextAlignmentControl: TextAlignmentControl,
[71493] Fix | Delete
ReusableBlocksRenameHint: ReusableBlocksRenameHint,
[71494] Fix | Delete
useReusableBlocksRenameHint: useReusableBlocksRenameHint,
[71495] Fix | Delete
usesContextKey: usesContextKey,
[71496] Fix | Delete
useFlashEditableBlocks: useFlashEditableBlocks,
[71497] Fix | Delete
globalStylesDataKey: globalStylesDataKey,
[71498] Fix | Delete
selectBlockPatternsKey: selectBlockPatternsKey,
[71499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function