: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
let background = railColor || '';
background = COLORS.ui.backgroundDisabled;
return /*#__PURE__*/emotion_react_browser_esm_css({
}, true ? "" : 0, true ? "" : 0);
const Rail = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
} : 0)("background-color:", COLORS.gray[300], ";left:0;pointer-events:none;right:0;display:block;height:", railHeight, "px;position:absolute;margin-top:", (rangeHeightValue - railHeight) / 2, "px;top:0;border-radius:", railHeight, "px;", railBackgroundColor, ";" + ( true ? "" : 0));
const trackBackgroundColor = ({
let background = trackColor || 'currentColor';
background = COLORS.gray[400];
return /*#__PURE__*/emotion_react_browser_esm_css({
}, true ? "" : 0, true ? "" : 0);
const Track = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
} : 0)("background-color:currentColor;border-radius:", railHeight, "px;height:", railHeight, "px;pointer-events:none;display:block;position:absolute;margin-top:", (rangeHeightValue - railHeight) / 2, "px;top:0;", trackBackgroundColor, ";" + ( true ? "" : 0));
const MarksWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
styles: "display:block;pointer-events:none;position:relative;width:100%;user-select:none"
let backgroundColor = isFilled ? 'currentColor' : COLORS.gray[300];
backgroundColor = COLORS.gray[400];
return /*#__PURE__*/emotion_react_browser_esm_css({
}, true ? "" : 0, true ? "" : 0);
const Mark = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
} : 0)("height:", thumbSize, "px;left:0;position:absolute;top:-4px;width:1px;", markFill, ";" + ( true ? "" : 0));
return /*#__PURE__*/emotion_react_browser_esm_css({
color: isFilled ? COLORS.gray[700] : COLORS.gray[300]
}, true ? "" : 0, true ? "" : 0);
const MarkLabel = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
} : 0)("color:", COLORS.gray[300], ";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;", markLabelFill, ";" + ( true ? "" : 0));
}) => disabled ? /*#__PURE__*/emotion_react_browser_esm_css("background-color:", COLORS.gray[400], ";" + ( true ? "" : 0), true ? "" : 0) : /*#__PURE__*/emotion_react_browser_esm_css("background-color:", COLORS.theme.accent, ";" + ( true ? "" : 0), true ? "" : 0);
const ThumbWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
} : 0)("align-items:center;display:flex;height:", thumbSize, "px;justify-content:center;margin-top:", (rangeHeightValue - thumbSize) / 2, "px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:", thumbSize, "px;border-radius:50%;", thumbColor, ";", rtl({
transform: 'translateX( 4.5px )'
transform: 'translateX( -4.5px )'
}), ";" + ( true ? "" : 0));
return isFocused ? /*#__PURE__*/emotion_react_browser_esm_css("&::before{content:' ';position:absolute;background-color:", COLORS.theme.accent, ";opacity:0.4;border-radius:50%;height:", thumbSize + 8, "px;width:", thumbSize + 8, "px;top:-4px;left:-4px;}" + ( true ? "" : 0), true ? "" : 0) : '';
const Thumb = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
} : 0)("align-items:center;border-radius:50%;height:100%;outline:0;position:absolute;user-select:none;width:100%;", thumbColor, ";", thumbFocus, ";" + ( true ? "" : 0));
const InputRange = /*#__PURE__*/emotion_styled_base_browser_esm("input", true ? {
} : 0)("box-sizing:border-box;cursor:pointer;display:block;height:100%;left:0;margin:0 -", thumbSize / 2, "px;opacity:0;outline:none;position:absolute;right:0;top:0;width:calc( 100% + ", thumbSize, "px );" + ( true ? "" : 0));
return /*#__PURE__*/emotion_react_browser_esm_css({
}, true ? "" : 0, true ? "" : 0);
var range_control_styles_ref = true ? {
var range_control_styles_ref2 = true ? {
const tooltipPosition = ({
const isBottom = position === 'bottom';
return range_control_styles_ref2;
return range_control_styles_ref;
const range_control_styles_Tooltip = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
} : 0)("background:rgba( 0, 0, 0, 0.8 );border-radius:2px;color:white;display:inline-block;font-size:12px;min-width:32px;opacity:0;padding:4px 8px;pointer-events:none;position:absolute;text-align:center;user-select:none;line-height:1.4;@media not ( prefers-reduced-motion ){transition:opacity 120ms ease;}", tooltipShow, ";", tooltipPosition, ";", rtl({
transform: 'translateX(-50%)'
transform: 'translateX(50%)'
}), ";" + ( true ? "" : 0));
// @todo Refactor RangeControl with latest HStack configuration
// @see: packages/components/src/h-stack
const InputNumber = /*#__PURE__*/emotion_styled_base_browser_esm(number_control, true ? {
} : 0)("display:inline-block;font-size:13px;margin-top:0;input[type='number']&{", rangeHeight, ";}", rtl({
marginLeft: `${space(4)} !important`
}), ";" + ( true ? "" : 0));
const ActionRightWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
} : 0)("display:block;margin-top:0;button,button.is-small{margin-left:0;", rangeHeight, ";}", rtl({
}), ";" + ( true ? "" : 0));
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/range-control/input-range.js
function input_range_InputRange(props, ref) {
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InputRange, {
"aria-describedby": describedBy,
const input_range_ForwardedComponent = (0,external_wp_element_namespaceObject.forwardRef)(input_range_InputRange);
/* harmony default export */ const input_range = (input_range_ForwardedComponent);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/range-control/mark.js
function RangeMark(props) {
const classes = dist_clsx('components-range-control__mark', isFilled && 'is-filled', className);
const labelClasses = dist_clsx('components-range-control__mark-label', isFilled && 'is-filled');
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Mark, {
}), label && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MarkLabel, {
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/range-control/rail.js
function RangeRail(props) {
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Rail, {
}), marks && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Marks, {
const step = stepProp === 'any' ? 1 : stepProp;
const marksData = useMarks({
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MarksWrapper, {
className: "components-range-control__marks",
children: marksData.map(mark => /*#__PURE__*/(0,external_React_.createElement)(RangeMark, {
if (!Array.isArray(marks)) {
const count = 1 + Math.round(range / step);
while (count > marks.push({
value: step * marks.length + min
marks.forEach((mark, index) => {
if (mark.value < min || mark.value > max) {
const key = `mark-${index}`;
const isFilled = mark.value <= value;
const offset = `${(mark.value - min) / range * 100}%`;
[(0,external_wp_i18n_namespaceObject.isRTL)() ? 'right' : 'left']: offset
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/range-control/tooltip.js
function SimpleTooltip(props) {
renderTooltipContent = v => v,
const position = useTooltipPosition({
const classes = dist_clsx('components-simple-tooltip', className);
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(range_control_styles_Tooltip, {
children: renderTooltipContent(value)
function useTooltipPosition({
const [position, setPosition] = (0,external_wp_element_namespaceObject.useState)();
const setTooltipPosition = (0,external_wp_element_namespaceObject.useCallback)(() => {
if (inputRef && inputRef.current) {
setPosition(tooltipPosition);
}, [tooltipPosition, inputRef]);
(0,external_wp_element_namespaceObject.useEffect)(() => {
}, [setTooltipPosition]);
(0,external_wp_element_namespaceObject.useEffect)(() => {
window.addEventListener('resize', setTooltipPosition);
window.removeEventListener('resize', setTooltipPosition);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/range-control/index.js
const range_control_noop = () => {};
function UnforwardedRangeControl(props, forwardedRef) {
__nextHasNoMarginBottom = false,
color: colorProp = COLORS.theme.accent,
hideLabelFromVision = false,
isShiftStepEnabled = true,
onBlur = range_control_noop,
onChange = range_control_noop,
onFocus = range_control_noop,
onMouseLeave = range_control_noop,
onMouseMove = range_control_noop,
renderTooltipContent = v => v,
__next40pxDefaultSize = false,
showTooltip: showTooltipProp,
const [value, setValue] = useControlledRangeValue({
value: valueProp !== null && valueProp !== void 0 ? valueProp : null,
const isResetPendent = (0,external_wp_element_namespaceObject.useRef)(false);
let hasTooltip = showTooltipProp;
let hasInputField = withInputField;
// The tooltip and number input field are hidden when the step is "any"
// because the decimals get too lengthy to fit well.
const [showTooltip, setShowTooltip] = (0,external_wp_element_namespaceObject.useState)(hasTooltip);
const [isFocused, setIsFocused] = (0,external_wp_element_namespaceObject.useState)(false);
const inputRef = (0,external_wp_element_namespaceObject.useRef)();
const isCurrentlyFocused = inputRef.current?.matches(':focus');
const isThumbFocused = !disabled && isFocused;
const isValueReset = value === null;
const currentValue = value !== undefined ? value : currentInput;
const inputSliderValue = isValueReset ? '' : currentValue;
const rangeFillValue = isValueReset ? (max - min) / 2 + min : value;
const fillValue = isValueReset ? 50 : (value - min) / (max - min) * 100;
const fillValueOffset = `${math_clamp(fillValue, 0, 100)}%`;
const classes = dist_clsx('components-range-control', className);
const wrapperClasses = dist_clsx('components-range-control__wrapper', !!marks && 'is-marked');
const id = (0,external_wp_compose_namespaceObject.useInstanceId)(UnforwardedRangeControl, 'inspector-range-control');
const describedBy = !!help ? `${id}__help` : undefined;
const enableTooltip = hasTooltip !== false && Number.isFinite(value);
const handleOnRangeChange = event => {
const nextValue = parseFloat(event.target.value);
const handleOnChange = next => {
// @ts-expect-error TODO: Investigate if it's problematic for setValue() to
// potentially receive a NaN when next is undefined.
let nextValue = parseFloat(next);
* Calls onChange only when nextValue is numeric
* otherwise may queue a reset for the blur event.
if (nextValue < min || nextValue > max) {
nextValue = floatClamp(nextValue, min, max);
isResetPendent.current = false;
isResetPendent.current = true;
const handleOnInputNumberBlur = () => {
if (isResetPendent.current) {
isResetPendent.current = false;
const handleOnReset = () => {