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
key: `${styleValue}-${weightValue}`,
[28000] Fix | Delete
name: optionName,
[28001] Fix | Delete
style: {
[28002] Fix | Delete
fontStyle: styleValue,
[28003] Fix | Delete
fontWeight: weightValue
[28004] Fix | Delete
}
[28005] Fix | Delete
});
[28006] Fix | Delete
});
[28007] Fix | Delete
});
[28008] Fix | Delete
return combinedOptions;
[28009] Fix | Delete
};
[28010] Fix | Delete
[28011] Fix | Delete
// Generates select options for font styles only.
[28012] Fix | Delete
const styleOptions = () => {
[28013] Fix | Delete
const combinedOptions = [defaultOption];
[28014] Fix | Delete
FONT_STYLES.forEach(({
[28015] Fix | Delete
name,
[28016] Fix | Delete
value
[28017] Fix | Delete
}) => {
[28018] Fix | Delete
combinedOptions.push({
[28019] Fix | Delete
key: value,
[28020] Fix | Delete
name,
[28021] Fix | Delete
style: {
[28022] Fix | Delete
fontStyle: value,
[28023] Fix | Delete
fontWeight: undefined
[28024] Fix | Delete
}
[28025] Fix | Delete
});
[28026] Fix | Delete
});
[28027] Fix | Delete
return combinedOptions;
[28028] Fix | Delete
};
[28029] Fix | Delete
[28030] Fix | Delete
// Generates select options for font weights only.
[28031] Fix | Delete
const weightOptions = () => {
[28032] Fix | Delete
const combinedOptions = [defaultOption];
[28033] Fix | Delete
FONT_WEIGHTS.forEach(({
[28034] Fix | Delete
name,
[28035] Fix | Delete
value
[28036] Fix | Delete
}) => {
[28037] Fix | Delete
combinedOptions.push({
[28038] Fix | Delete
key: value,
[28039] Fix | Delete
name,
[28040] Fix | Delete
style: {
[28041] Fix | Delete
fontStyle: undefined,
[28042] Fix | Delete
fontWeight: value
[28043] Fix | Delete
}
[28044] Fix | Delete
});
[28045] Fix | Delete
});
[28046] Fix | Delete
return combinedOptions;
[28047] Fix | Delete
};
[28048] Fix | Delete
[28049] Fix | Delete
// Map font styles and weights to select options.
[28050] Fix | Delete
const selectOptions = (0,external_wp_element_namespaceObject.useMemo)(() => {
[28051] Fix | Delete
if (hasFontStyles && hasFontWeights) {
[28052] Fix | Delete
return combineOptions();
[28053] Fix | Delete
}
[28054] Fix | Delete
return hasFontStyles ? styleOptions() : weightOptions();
[28055] Fix | Delete
}, [props.options]);
[28056] Fix | Delete
[28057] Fix | Delete
// Find current selection by comparing font style & weight against options,
[28058] Fix | Delete
// and fall back to the Default option if there is no matching option.
[28059] Fix | Delete
const currentSelection = selectOptions.find(option => option.style.fontStyle === fontStyle && option.style.fontWeight === fontWeight) || selectOptions[0];
[28060] Fix | Delete
[28061] Fix | Delete
// Adjusts screen reader description based on styles or weights.
[28062] Fix | Delete
const getDescribedBy = () => {
[28063] Fix | Delete
if (!currentSelection) {
[28064] Fix | Delete
return (0,external_wp_i18n_namespaceObject.__)('No selected font appearance');
[28065] Fix | Delete
}
[28066] Fix | Delete
if (!hasFontStyles) {
[28067] Fix | Delete
return (0,external_wp_i18n_namespaceObject.sprintf)(
[28068] Fix | Delete
// translators: %s: Currently selected font weight.
[28069] Fix | Delete
(0,external_wp_i18n_namespaceObject.__)('Currently selected font weight: %s'), currentSelection.name);
[28070] Fix | Delete
}
[28071] Fix | Delete
if (!hasFontWeights) {
[28072] Fix | Delete
return (0,external_wp_i18n_namespaceObject.sprintf)(
[28073] Fix | Delete
// translators: %s: Currently selected font style.
[28074] Fix | Delete
(0,external_wp_i18n_namespaceObject.__)('Currently selected font style: %s'), currentSelection.name);
[28075] Fix | Delete
}
[28076] Fix | Delete
return (0,external_wp_i18n_namespaceObject.sprintf)(
[28077] Fix | Delete
// translators: %s: Currently selected font appearance.
[28078] Fix | Delete
(0,external_wp_i18n_namespaceObject.__)('Currently selected font appearance: %s'), currentSelection.name);
[28079] Fix | Delete
};
[28080] Fix | Delete
return hasStylesOrWeights && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CustomSelectControl, {
[28081] Fix | Delete
...otherProps,
[28082] Fix | Delete
className: "components-font-appearance-control",
[28083] Fix | Delete
label: label,
[28084] Fix | Delete
describedBy: getDescribedBy(),
[28085] Fix | Delete
options: selectOptions,
[28086] Fix | Delete
value: currentSelection,
[28087] Fix | Delete
onChange: ({
[28088] Fix | Delete
selectedItem
[28089] Fix | Delete
}) => onChange(selectedItem.style)
[28090] Fix | Delete
});
[28091] Fix | Delete
}
[28092] Fix | Delete
[28093] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/line-height-control/utils.js
[28094] Fix | Delete
const BASE_DEFAULT_VALUE = 1.5;
[28095] Fix | Delete
const STEP = 0.01;
[28096] Fix | Delete
/**
[28097] Fix | Delete
* A spin factor of 10 allows the spin controls to increment/decrement by 0.1.
[28098] Fix | Delete
* e.g. A line-height value of 1.55 will increment to 1.65.
[28099] Fix | Delete
*/
[28100] Fix | Delete
const SPIN_FACTOR = 10;
[28101] Fix | Delete
/**
[28102] Fix | Delete
* There are varying value types within LineHeightControl:
[28103] Fix | Delete
*
[28104] Fix | Delete
* {undefined} Initial value. No changes from the user.
[28105] Fix | Delete
* {string} Input value. Value consumed/outputted by the input. Empty would be ''.
[28106] Fix | Delete
* {number} Block attribute type. Input value needs to be converted for attribute setting.
[28107] Fix | Delete
*
[28108] Fix | Delete
* Note: If the value is undefined, the input requires it to be an empty string ('')
[28109] Fix | Delete
* in order to be considered "controlled" by props (rather than internal state).
[28110] Fix | Delete
*/
[28111] Fix | Delete
const RESET_VALUE = '';
[28112] Fix | Delete
[28113] Fix | Delete
/**
[28114] Fix | Delete
* Determines if the lineHeight attribute has been properly defined.
[28115] Fix | Delete
*
[28116] Fix | Delete
* @param {any} lineHeight The value to check.
[28117] Fix | Delete
*
[28118] Fix | Delete
* @return {boolean} Whether the lineHeight attribute is valid.
[28119] Fix | Delete
*/
[28120] Fix | Delete
function isLineHeightDefined(lineHeight) {
[28121] Fix | Delete
return lineHeight !== undefined && lineHeight !== RESET_VALUE;
[28122] Fix | Delete
}
[28123] Fix | Delete
[28124] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/line-height-control/index.js
[28125] Fix | Delete
/**
[28126] Fix | Delete
* WordPress dependencies
[28127] Fix | Delete
*/
[28128] Fix | Delete
[28129] Fix | Delete
[28130] Fix | Delete
[28131] Fix | Delete
[28132] Fix | Delete
/**
[28133] Fix | Delete
* Internal dependencies
[28134] Fix | Delete
*/
[28135] Fix | Delete
[28136] Fix | Delete
[28137] Fix | Delete
const line_height_control_LineHeightControl = ({
[28138] Fix | Delete
value: lineHeight,
[28139] Fix | Delete
onChange,
[28140] Fix | Delete
/** Start opting into the new margin-free styles that will become the default in a future version. */
[28141] Fix | Delete
__nextHasNoMarginBottom = false,
[28142] Fix | Delete
__unstableInputWidth = '60px',
[28143] Fix | Delete
...otherProps
[28144] Fix | Delete
}) => {
[28145] Fix | Delete
const isDefined = isLineHeightDefined(lineHeight);
[28146] Fix | Delete
const adjustNextValue = (nextValue, wasTypedOrPasted) => {
[28147] Fix | Delete
// Set the next value without modification if lineHeight has been defined.
[28148] Fix | Delete
if (isDefined) {
[28149] Fix | Delete
return nextValue;
[28150] Fix | Delete
}
[28151] Fix | Delete
[28152] Fix | Delete
/**
[28153] Fix | Delete
* The following logic handles the initial spin up/down action
[28154] Fix | Delete
* (from an undefined value state) so that the next values are better suited for
[28155] Fix | Delete
* line-height rendering. For example, the first spin up should immediately
[28156] Fix | Delete
* go to 1.6, rather than the normally expected 0.1.
[28157] Fix | Delete
*
[28158] Fix | Delete
* Spin up/down actions can be triggered by keydowns of the up/down arrow keys,
[28159] Fix | Delete
* dragging the input or by clicking the spin buttons.
[28160] Fix | Delete
*/
[28161] Fix | Delete
const spin = STEP * SPIN_FACTOR;
[28162] Fix | Delete
switch (`${nextValue}`) {
[28163] Fix | Delete
case `${spin}`:
[28164] Fix | Delete
// Increment by spin value.
[28165] Fix | Delete
return BASE_DEFAULT_VALUE + spin;
[28166] Fix | Delete
case '0':
[28167] Fix | Delete
{
[28168] Fix | Delete
// This means the user explicitly input '0', rather than using the
[28169] Fix | Delete
// spin down action from an undefined value state.
[28170] Fix | Delete
if (wasTypedOrPasted) {
[28171] Fix | Delete
return nextValue;
[28172] Fix | Delete
}
[28173] Fix | Delete
// Decrement by spin value.
[28174] Fix | Delete
return BASE_DEFAULT_VALUE - spin;
[28175] Fix | Delete
}
[28176] Fix | Delete
case '':
[28177] Fix | Delete
return BASE_DEFAULT_VALUE;
[28178] Fix | Delete
default:
[28179] Fix | Delete
return nextValue;
[28180] Fix | Delete
}
[28181] Fix | Delete
};
[28182] Fix | Delete
const stateReducer = (state, action) => {
[28183] Fix | Delete
// Be careful when changing this — cross-browser behavior of the
[28184] Fix | Delete
// `inputType` field in `input` events are inconsistent.
[28185] Fix | Delete
// For example, Firefox emits an input event with inputType="insertReplacementText"
[28186] Fix | Delete
// on spin button clicks, while other browsers do not even emit an input event.
[28187] Fix | Delete
const wasTypedOrPasted = ['insertText', 'insertFromPaste'].includes(action.payload.event.nativeEvent?.inputType);
[28188] Fix | Delete
const value = adjustNextValue(state.value, wasTypedOrPasted);
[28189] Fix | Delete
return {
[28190] Fix | Delete
...state,
[28191] Fix | Delete
value
[28192] Fix | Delete
};
[28193] Fix | Delete
};
[28194] Fix | Delete
const value = isDefined ? lineHeight : RESET_VALUE;
[28195] Fix | Delete
if (!__nextHasNoMarginBottom) {
[28196] Fix | Delete
external_wp_deprecated_default()('Bottom margin styles for wp.blockEditor.LineHeightControl', {
[28197] Fix | Delete
since: '6.0',
[28198] Fix | Delete
version: '6.4',
[28199] Fix | Delete
hint: 'Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version'
[28200] Fix | Delete
});
[28201] Fix | Delete
}
[28202] Fix | Delete
const deprecatedStyles = __nextHasNoMarginBottom ? undefined : {
[28203] Fix | Delete
marginBottom: 24
[28204] Fix | Delete
};
[28205] Fix | Delete
const handleOnChange = (nextValue, {
[28206] Fix | Delete
event
[28207] Fix | Delete
}) => {
[28208] Fix | Delete
if (nextValue === '') {
[28209] Fix | Delete
onChange();
[28210] Fix | Delete
return;
[28211] Fix | Delete
}
[28212] Fix | Delete
if (event.type === 'click') {
[28213] Fix | Delete
onChange(adjustNextValue(`${nextValue}`, false));
[28214] Fix | Delete
return;
[28215] Fix | Delete
}
[28216] Fix | Delete
onChange(`${nextValue}`);
[28217] Fix | Delete
};
[28218] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
[28219] Fix | Delete
className: "block-editor-line-height-control",
[28220] Fix | Delete
style: deprecatedStyles,
[28221] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalNumberControl, {
[28222] Fix | Delete
...otherProps,
[28223] Fix | Delete
__unstableInputWidth: __unstableInputWidth,
[28224] Fix | Delete
__unstableStateReducer: stateReducer,
[28225] Fix | Delete
onChange: handleOnChange,
[28226] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Line height'),
[28227] Fix | Delete
placeholder: BASE_DEFAULT_VALUE,
[28228] Fix | Delete
step: STEP,
[28229] Fix | Delete
spinFactor: SPIN_FACTOR,
[28230] Fix | Delete
value: value,
[28231] Fix | Delete
min: 0,
[28232] Fix | Delete
spinControls: "custom"
[28233] Fix | Delete
})
[28234] Fix | Delete
});
[28235] Fix | Delete
};
[28236] Fix | Delete
[28237] Fix | Delete
/**
[28238] Fix | Delete
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/line-height-control/README.md
[28239] Fix | Delete
*/
[28240] Fix | Delete
/* harmony default export */ const line_height_control = (line_height_control_LineHeightControl);
[28241] Fix | Delete
[28242] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/letter-spacing-control/index.js
[28243] Fix | Delete
/**
[28244] Fix | Delete
* WordPress dependencies
[28245] Fix | Delete
*/
[28246] Fix | Delete
[28247] Fix | Delete
[28248] Fix | Delete
[28249] Fix | Delete
/**
[28250] Fix | Delete
* Internal dependencies
[28251] Fix | Delete
*/
[28252] Fix | Delete
[28253] Fix | Delete
[28254] Fix | Delete
/**
[28255] Fix | Delete
* Control for letter-spacing.
[28256] Fix | Delete
*
[28257] Fix | Delete
* @param {Object} props Component props.
[28258] Fix | Delete
* @param {string} props.value Currently selected letter-spacing.
[28259] Fix | Delete
* @param {Function} props.onChange Handles change in letter-spacing selection.
[28260] Fix | Delete
* @param {string|number|undefined} props.__unstableInputWidth Input width to pass through to inner UnitControl. Should be a valid CSS value.
[28261] Fix | Delete
*
[28262] Fix | Delete
* @return {Element} Letter-spacing control.
[28263] Fix | Delete
*/
[28264] Fix | Delete
[28265] Fix | Delete
function LetterSpacingControl({
[28266] Fix | Delete
value,
[28267] Fix | Delete
onChange,
[28268] Fix | Delete
__unstableInputWidth = '60px',
[28269] Fix | Delete
...otherProps
[28270] Fix | Delete
}) {
[28271] Fix | Delete
const [availableUnits] = use_settings_useSettings('spacing.units');
[28272] Fix | Delete
const units = (0,external_wp_components_namespaceObject.__experimentalUseCustomUnits)({
[28273] Fix | Delete
availableUnits: availableUnits || ['px', 'em', 'rem'],
[28274] Fix | Delete
defaultValues: {
[28275] Fix | Delete
px: 2,
[28276] Fix | Delete
em: 0.2,
[28277] Fix | Delete
rem: 0.2
[28278] Fix | Delete
}
[28279] Fix | Delete
});
[28280] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalUnitControl, {
[28281] Fix | Delete
...otherProps,
[28282] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Letter spacing'),
[28283] Fix | Delete
value: value,
[28284] Fix | Delete
__unstableInputWidth: __unstableInputWidth,
[28285] Fix | Delete
units: units,
[28286] Fix | Delete
onChange: onChange
[28287] Fix | Delete
});
[28288] Fix | Delete
}
[28289] Fix | Delete
[28290] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/align-left.js
[28291] Fix | Delete
/**
[28292] Fix | Delete
* WordPress dependencies
[28293] Fix | Delete
*/
[28294] Fix | Delete
[28295] Fix | Delete
[28296] Fix | Delete
const alignLeft = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[28297] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[28298] Fix | Delete
viewBox: "0 0 24 24",
[28299] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[28300] Fix | Delete
d: "M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"
[28301] Fix | Delete
})
[28302] Fix | Delete
});
[28303] Fix | Delete
/* harmony default export */ const align_left = (alignLeft);
[28304] Fix | Delete
[28305] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/align-center.js
[28306] Fix | Delete
/**
[28307] Fix | Delete
* WordPress dependencies
[28308] Fix | Delete
*/
[28309] Fix | Delete
[28310] Fix | Delete
[28311] Fix | Delete
const align_center_alignCenter = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[28312] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[28313] Fix | Delete
viewBox: "0 0 24 24",
[28314] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[28315] Fix | Delete
d: "M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"
[28316] Fix | Delete
})
[28317] Fix | Delete
});
[28318] Fix | Delete
/* harmony default export */ const align_center = (align_center_alignCenter);
[28319] Fix | Delete
[28320] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/align-right.js
[28321] Fix | Delete
/**
[28322] Fix | Delete
* WordPress dependencies
[28323] Fix | Delete
*/
[28324] Fix | Delete
[28325] Fix | Delete
[28326] Fix | Delete
const alignRight = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[28327] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[28328] Fix | Delete
viewBox: "0 0 24 24",
[28329] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[28330] Fix | Delete
d: "M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"
[28331] Fix | Delete
})
[28332] Fix | Delete
});
[28333] Fix | Delete
/* harmony default export */ const align_right = (alignRight);
[28334] Fix | Delete
[28335] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/align-justify.js
[28336] Fix | Delete
/**
[28337] Fix | Delete
* WordPress dependencies
[28338] Fix | Delete
*/
[28339] Fix | Delete
[28340] Fix | Delete
[28341] Fix | Delete
const alignJustify = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[28342] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[28343] Fix | Delete
viewBox: "0 0 24 24",
[28344] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[28345] Fix | Delete
d: "M4 12.8h16v-1.5H4v1.5zm0 7h12.4v-1.5H4v1.5zM4 4.3v1.5h16V4.3H4z"
[28346] Fix | Delete
})
[28347] Fix | Delete
});
[28348] Fix | Delete
/* harmony default export */ const align_justify = (alignJustify);
[28349] Fix | Delete
[28350] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/segmented-text-control/index.js
[28351] Fix | Delete
/**
[28352] Fix | Delete
* External dependencies
[28353] Fix | Delete
*/
[28354] Fix | Delete
[28355] Fix | Delete
[28356] Fix | Delete
/**
[28357] Fix | Delete
* WordPress dependencies
[28358] Fix | Delete
*/
[28359] Fix | Delete
[28360] Fix | Delete
[28361] Fix | Delete
/**
[28362] Fix | Delete
* @typedef {Object} Option
[28363] Fix | Delete
* @property {string} label The label of the option.
[28364] Fix | Delete
* @property {string} value The value of the option.
[28365] Fix | Delete
* @property {string} icon The icon of the option.
[28366] Fix | Delete
*/
[28367] Fix | Delete
[28368] Fix | Delete
/**
[28369] Fix | Delete
* Control to facilitate selecting a text style from a set of options.
[28370] Fix | Delete
*
[28371] Fix | Delete
* @param {Object} props Component props.
[28372] Fix | Delete
* @param {string} props.label A label for the option.
[28373] Fix | Delete
* @param {string} props.value Currently selected value.
[28374] Fix | Delete
* @param {Function} props.onChange Callback to handle onChange.
[28375] Fix | Delete
* @param {Option[]} props.options Array of options to display.
[28376] Fix | Delete
* @param {string} props.className Additional class name to apply.
[28377] Fix | Delete
*
[28378] Fix | Delete
* @return {Element} Element to render.
[28379] Fix | Delete
*/
[28380] Fix | Delete
[28381] Fix | Delete
[28382] Fix | Delete
function SegmentedTextControl({
[28383] Fix | Delete
label,
[28384] Fix | Delete
value,
[28385] Fix | Delete
options,
[28386] Fix | Delete
onChange,
[28387] Fix | Delete
className
[28388] Fix | Delete
}) {
[28389] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("fieldset", {
[28390] Fix | Delete
className: dist_clsx('block-editor-segmented-text-control', className),
[28391] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.BaseControl.VisualLabel, {
[28392] Fix | Delete
as: "legend",
[28393] Fix | Delete
children: label
[28394] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
[28395] Fix | Delete
className: "block-editor-segmented-text-control__buttons",
[28396] Fix | Delete
children: options.map(option => {
[28397] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
[28398] Fix | Delete
size: "compact",
[28399] Fix | Delete
icon: option.icon,
[28400] Fix | Delete
label: option.label,
[28401] Fix | Delete
isPressed: option.value === value,
[28402] Fix | Delete
onClick: () => onChange(option.value)
[28403] Fix | Delete
}, option.value);
[28404] Fix | Delete
})
[28405] Fix | Delete
})]
[28406] Fix | Delete
});
[28407] Fix | Delete
}
[28408] Fix | Delete
[28409] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/text-alignment-control/index.js
[28410] Fix | Delete
/**
[28411] Fix | Delete
* External dependencies
[28412] Fix | Delete
*/
[28413] Fix | Delete
[28414] Fix | Delete
[28415] Fix | Delete
/**
[28416] Fix | Delete
* WordPress dependencies
[28417] Fix | Delete
*/
[28418] Fix | Delete
[28419] Fix | Delete
[28420] Fix | Delete
[28421] Fix | Delete
[28422] Fix | Delete
/**
[28423] Fix | Delete
* Internal dependencies
[28424] Fix | Delete
*/
[28425] Fix | Delete
[28426] Fix | Delete
[28427] Fix | Delete
const TEXT_ALIGNMENT_OPTIONS = [{
[28428] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Align text left'),
[28429] Fix | Delete
value: 'left',
[28430] Fix | Delete
icon: align_left
[28431] Fix | Delete
}, {
[28432] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Align text center'),
[28433] Fix | Delete
value: 'center',
[28434] Fix | Delete
icon: align_center
[28435] Fix | Delete
}, {
[28436] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Align text right'),
[28437] Fix | Delete
value: 'right',
[28438] Fix | Delete
icon: align_right
[28439] Fix | Delete
}, {
[28440] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Justify text'),
[28441] Fix | Delete
value: 'justify',
[28442] Fix | Delete
icon: align_justify
[28443] Fix | Delete
}];
[28444] Fix | Delete
const DEFAULT_OPTIONS = ['left', 'center', 'right'];
[28445] Fix | Delete
[28446] Fix | Delete
/**
[28447] Fix | Delete
* Control to facilitate text alignment selections.
[28448] Fix | Delete
*
[28449] Fix | Delete
* @param {Object} props Component props.
[28450] Fix | Delete
* @param {string} props.className Class name to add to the control.
[28451] Fix | Delete
* @param {string} props.value Currently selected text alignment.
[28452] Fix | Delete
* @param {Function} props.onChange Handles change in text alignment selection.
[28453] Fix | Delete
* @param {string[]} props.options Array of text alignment options to display.
[28454] Fix | Delete
*
[28455] Fix | Delete
* @return {Element} Text alignment control.
[28456] Fix | Delete
*/
[28457] Fix | Delete
function TextAlignmentControl({
[28458] Fix | Delete
className,
[28459] Fix | Delete
value,
[28460] Fix | Delete
onChange,
[28461] Fix | Delete
options = DEFAULT_OPTIONS
[28462] Fix | Delete
}) {
[28463] Fix | Delete
const validOptions = (0,external_wp_element_namespaceObject.useMemo)(() => TEXT_ALIGNMENT_OPTIONS.filter(option => options.includes(option.value)), [options]);
[28464] Fix | Delete
if (!validOptions.length) {
[28465] Fix | Delete
return null;
[28466] Fix | Delete
}
[28467] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SegmentedTextControl, {
[28468] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Text alignment'),
[28469] Fix | Delete
options: validOptions,
[28470] Fix | Delete
className: dist_clsx('block-editor-text-alignment-control', className),
[28471] Fix | Delete
value: value,
[28472] Fix | Delete
onChange: newValue => {
[28473] Fix | Delete
onChange(newValue === value ? undefined : newValue);
[28474] Fix | Delete
}
[28475] Fix | Delete
});
[28476] Fix | Delete
}
[28477] Fix | Delete
[28478] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/reset.js
[28479] Fix | Delete
/**
[28480] Fix | Delete
* WordPress dependencies
[28481] Fix | Delete
*/
[28482] Fix | Delete
[28483] Fix | Delete
[28484] Fix | Delete
const reset_reset = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[28485] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[28486] Fix | Delete
viewBox: "0 0 24 24",
[28487] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[28488] Fix | Delete
d: "M7 11.5h10V13H7z"
[28489] Fix | Delete
})
[28490] Fix | Delete
});
[28491] Fix | Delete
/* harmony default export */ const library_reset = (reset_reset);
[28492] Fix | Delete
[28493] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-uppercase.js
[28494] Fix | Delete
/**
[28495] Fix | Delete
* WordPress dependencies
[28496] Fix | Delete
*/
[28497] Fix | Delete
[28498] Fix | Delete
[28499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function