onShow = _ref2$onShow === void 0 ? external_lodash_["noop"] : _ref2$onShow,
_ref2$timeout = _ref2.timeout,
timeout = _ref2$timeout === void 0 ? 300 : _ref2$timeout;
var _useState = Object(external_wp_element_["useState"])(false),
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
var timeoutRef = Object(external_wp_element_["useRef"])();
var setDebouncedTimeout = Object(external_wp_element_["useCallback"])(function (callback) {
window.clearTimeout(timeoutRef.current);
timeoutRef.current = setTimeout(callback, timeout);
var handleOnMouseMove = Object(external_wp_element_["useCallback"])(function (event) {
setDebouncedTimeout(function () {
var handleOnMouseLeave = Object(external_wp_element_["useCallback"])(function (event) {
setDebouncedTimeout(function () {
Object(external_wp_element_["useEffect"])(function () {
window.clearTimeout(timeoutRef.current);
onMouseMove: handleOnMouseMove,
onMouseLeave: handleOnMouseLeave
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/range-control/styles/range-control-styles.js
function range_control_styles_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)."; }
var range_control_styles_ref = true ? {
styles: "height:30px;min-height:30px;"
var rangeHeight = function rangeHeight() {
return range_control_styles_ref;
var range_control_styles_Root = styled_base_browser_esm("div", {
styles: "-webkit-tap-highlight-color:transparent;box-sizing:border-box;align-items:flex-start;display:inline-flex;justify-content:flex-start;padding:0;position:relative;touch-action:none;width:100%;"
var range_control_styles_wrapperColor = function wrapperColor(_ref4) {
var _ref4$color = _ref4.color,
colorProp = _ref4$color === void 0 ? colors_color('ui.borderFocus') : _ref4$color;
return /*#__PURE__*/Object(core_browser_esm["b" /* css */])({
}, true ? "" : undefined);
var range_control_styles_wrapperMargin = function wrapperMargin(_ref5) {
return /*#__PURE__*/Object(core_browser_esm["b" /* css */])({
marginBottom: marks ? 16 : null
}, true ? "" : undefined);
var range_control_styles_Wrapper = styled_base_browser_esm("div", {
})("box-sizing:border-box;color:", colors_color('blue.medium.focus'), ";display:block;flex:1;padding-top:15px;position:relative;width:100%;", range_control_styles_wrapperColor, ";", rangeHeight, ";", range_control_styles_wrapperMargin, ";", rtl_rtl({
}), true ? "" : undefined);
var BeforeIconWrapper = styled_base_browser_esm("span", {
label: "BeforeIconWrapper"
})("margin-top:3px;", rtl_rtl({
}), true ? "" : undefined);
var AfterIconWrapper = styled_base_browser_esm("span", {
label: "AfterIconWrapper"
})("margin-top:3px;", rtl_rtl({
}), true ? "" : undefined);
var range_control_styles_railBackgroundColor = function railBackgroundColor(_ref6) {
var disabled = _ref6.disabled,
railColor = _ref6.railColor;
var background = railColor || null;
background = colors_color('lightGray.400');
return /*#__PURE__*/Object(core_browser_esm["b" /* css */])({
}, true ? "" : undefined);
var Rail = styled_base_browser_esm("span", {
})("background-color:", colors_color('lightGray.600'), ";box-sizing:border-box;left:0;pointer-events:none;right:0;display:block;height:3px;position:absolute;margin-top:14px;top:0;", range_control_styles_railBackgroundColor, ";" + ( true ? "" : undefined));
var range_control_styles_trackBackgroundColor = function trackBackgroundColor(_ref7) {
var disabled = _ref7.disabled,
trackColor = _ref7.trackColor;
var background = trackColor || 'currentColor';
background = colors_color('lightGray.800');
return /*#__PURE__*/Object(core_browser_esm["b" /* css */])({
}, true ? "" : undefined);
var Track = styled_base_browser_esm("span", {
})("background-color:currentColor;border-radius:1px;box-sizing:border-box;height:3px;pointer-events:none;display:block;position:absolute;margin-top:14px;top:0;", range_control_styles_trackBackgroundColor, ";" + ( true ? "" : undefined));
var MarksWrapper = styled_base_browser_esm("span", {
styles: "box-sizing:border-box;display:block;pointer-events:none;position:relative;width:100%;user-select:none;"
var range_control_styles_markFill = function markFill(_ref8) {
var disabled = _ref8.disabled,
isFilled = _ref8.isFilled;
var backgroundColor = isFilled ? 'currentColor' : colors_color('lightGray.600');
backgroundColor = colors_color('lightGray.800');
return /*#__PURE__*/Object(core_browser_esm["b" /* css */])({
backgroundColor: backgroundColor
}, true ? "" : undefined);
var Mark = styled_base_browser_esm("span", {
})("box-sizing:border-box;height:9px;left:0;position:absolute;top:-4px;width:1px;", range_control_styles_markFill, ";" + ( true ? "" : undefined));
var range_control_styles_markLabelFill = function markLabelFill(_ref9) {
var isFilled = _ref9.isFilled;
return /*#__PURE__*/Object(core_browser_esm["b" /* css */])({
color: isFilled ? colors_color('darkGray.300') : colors_color('lightGray.600')
}, true ? "" : undefined);
var MarkLabel = styled_base_browser_esm("span", {
})("box-sizing:border-box;color:", colors_color('lightGray.600'), ";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;", range_control_styles_markLabelFill, ";" + ( true ? "" : undefined));
var ThumbWrapper = styled_base_browser_esm("span", {
})("align-items:center;box-sizing:border-box;display:flex;height:", thumbSize, "px;justify-content:center;margin-top:5px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:", thumbSize, "px;", rtl_rtl({
}), true ? "" : undefined);
var range_control_styles_thumbFocus = function thumbFocus(_ref10) {
var isFocused = _ref10.isFocused;
return /*#__PURE__*/Object(core_browser_esm["b" /* css */])({
borderColor: isFocused ? colors_color('ui.borderFocus') : colors_color('darkGray.200'),
boxShadow: isFocused ? "\n\t\t\t\t0 0 0 1px ".concat(colors_color('ui.borderFocus'), "\n\t\t\t") : "\n\t\t\t\t0 0 0 rgba(0, 0, 0, 0)\n\t\t\t"
}, true ? "" : undefined);
var Thumb = styled_base_browser_esm("span", {
})("align-items:center;background-color:white;border-radius:50%;border:1px solid ", colors_color('darkGray.200'), ";box-sizing:border-box;height:100%;outline:0;position:absolute;user-select:none;width:100%;", range_control_styles_thumbFocus, ";" + ( true ? "" : undefined));
var InputRange = styled_base_browser_esm("input", {
})("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 ? "" : undefined));
var range_control_styles_tooltipShow = function tooltipShow(_ref11) {
return /*#__PURE__*/Object(core_browser_esm["b" /* css */])({
}, true ? "" : undefined);
var range_control_styles_ref2 = true ? {
var range_control_styles_ref3 = true ? {
var tooltipPosition = function tooltipPosition(_ref12) {
var position = _ref12.position;
var isTop = position === 'top';
return range_control_styles_ref2;
return range_control_styles_ref3;
var range_control_styles_Tooltip = styled_base_browser_esm("span", {
})("background:", colors_color('ui.border'), ";border-radius:2px;box-sizing:border-box;color:white;display:inline-block;font-size:12px;min-width:32px;opacity:0;padding:4px 8px;pointer-events:none;position:absolute;text-align:center;transition:opacity 120ms ease;user-select:none;line-height:1.4;", range_control_styles_tooltipShow, ";", tooltipPosition, ";", reduceMotion('transition'), ";", rtl_rtl({
transform: 'translateX(-50%)'
transform: 'translateX(50%)'
}), true ? "" : undefined);
var InputNumber = /*#__PURE__*/styled_base_browser_esm(number_control, {
})("box-sizing:border-box;display:inline-block;font-size:13px;margin-top:0;width:", space(8), ";input[type='number']&{", rangeHeight, ";}", rtl_rtl({
}), true ? "" : undefined);
var ActionRightWrapper = styled_base_browser_esm("span", {
label: "ActionRightWrapper"
})("box-sizing:border-box;display:block;margin-top:0;button,button.is-small{margin-left:0;", rangeHeight, ";}", rtl_rtl({
}), true ? "" : undefined);
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/range-control/input-range.js
function input_range_InputRange(_ref, ref) {
var describedBy = _ref.describedBy,
_ref$isShiftStepEnabl = _ref.isShiftStepEnabled,
isShiftStepEnabled = _ref$isShiftStepEnabl === void 0 ? true : _ref$isShiftStepEnabl,
_ref$onHideTooltip = _ref.onHideTooltip,
onHideTooltip = _ref$onHideTooltip === void 0 ? external_lodash_["noop"] : _ref$onHideTooltip,
_ref$onMouseLeave = _ref.onMouseLeave,
onMouseLeave = _ref$onMouseLeave === void 0 ? external_lodash_["noop"] : _ref$onMouseLeave,
step = _ref$step === void 0 ? 1 : _ref$step,
_ref$onBlur = _ref.onBlur,
onBlur = _ref$onBlur === void 0 ? external_lodash_["noop"] : _ref$onBlur,
_ref$onChange = _ref.onChange,
onChange = _ref$onChange === void 0 ? external_lodash_["noop"] : _ref$onChange,
_ref$onFocus = _ref.onFocus,
onFocus = _ref$onFocus === void 0 ? external_lodash_["noop"] : _ref$onFocus,
_ref$onMouseMove = _ref.onMouseMove,
onMouseMove = _ref$onMouseMove === void 0 ? external_lodash_["noop"] : _ref$onMouseMove,
_ref$onShowTooltip = _ref.onShowTooltip,
onShowTooltip = _ref$onShowTooltip === void 0 ? external_lodash_["noop"] : _ref$onShowTooltip,
_ref$shiftStep = _ref.shiftStep,
shiftStep = _ref$shiftStep === void 0 ? 10 : _ref$shiftStep,
props = Object(objectWithoutProperties["a" /* default */])(_ref, ["describedBy", "isShiftStepEnabled", "label", "onHideTooltip", "onMouseLeave", "step", "onBlur", "onChange", "onFocus", "onMouseMove", "onShowTooltip", "shiftStep", "value"]);
var jumpStep = use_jump_step({
isShiftStepEnabled: isShiftStepEnabled
var hoverInteractions = useDebouncedHoverInteraction({
onMouseLeave: onMouseLeave,
onMouseMove: onMouseMove,
return Object(external_wp_element_["createElement"])(InputRange, Object(esm_extends["a" /* default */])({}, props, hoverInteractions, {
"aria-describedby": describedBy,
var input_range_ForwardedComponent = Object(external_wp_element_["forwardRef"])(input_range_InputRange);
/* harmony default export */ var input_range = (input_range_ForwardedComponent);
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/range-control/mark.js
function RangeMark(_ref) {
var className = _ref.className,
_ref$isFilled = _ref.isFilled,
isFilled = _ref$isFilled === void 0 ? false : _ref$isFilled,
style = _ref$style === void 0 ? {} : _ref$style,
props = Object(objectWithoutProperties["a" /* default */])(_ref, ["className", "isFilled", "label", "style"]);
var classes = classnames_default()('components-range-control__mark', isFilled && 'is-filled', className);
var labelClasses = classnames_default()('components-range-control__mark-label', isFilled && 'is-filled');
return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(Mark, Object(esm_extends["a" /* default */])({}, props, {
})), label && Object(external_wp_element_["createElement"])(MarkLabel, {
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/range-control/rail.js
function rail_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function rail_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { rail_ownKeys(Object(source), true).forEach(function (key) { Object(esm_defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { rail_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function RangeRail(_ref) {
var _ref$disabled = _ref.disabled,
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
marks = _ref$marks === void 0 ? false : _ref$marks,
min = _ref$min === void 0 ? 0 : _ref$min,
max = _ref$max === void 0 ? 100 : _ref$max,
step = _ref$step === void 0 ? 1 : _ref$step,
value = _ref$value === void 0 ? 0 : _ref$value,
restProps = Object(objectWithoutProperties["a" /* default */])(_ref, ["disabled", "marks", "min", "max", "step", "value"]);
return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(Rail, Object(esm_extends["a" /* default */])({
}, restProps)), marks && Object(external_wp_element_["createElement"])(Marks, {
var _ref2$disabled = _ref2.disabled,
disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
_ref2$marks = _ref2.marks,
marks = _ref2$marks === void 0 ? false : _ref2$marks,
min = _ref2$min === void 0 ? 0 : _ref2$min,
max = _ref2$max === void 0 ? 100 : _ref2$max,
step = _ref2$step === void 0 ? 1 : _ref2$step,
_ref2$value = _ref2.value,
value = _ref2$value === void 0 ? 0 : _ref2$value;
var marksData = useMarks({
return Object(external_wp_element_["createElement"])(MarksWrapper, {
className: "components-range-control__marks"
}, marksData.map(function (mark) {
return Object(external_wp_element_["createElement"])(RangeMark, Object(esm_extends["a" /* default */])({}, mark, {
function useMarks(_ref3) {
min = _ref3$min === void 0 ? 0 : _ref3$min,
max = _ref3$max === void 0 ? 100 : _ref3$max,
step = _ref3$step === void 0 ? 1 : _ref3$step,
_ref3$value = _ref3.value,
value = _ref3$value === void 0 ? 0 : _ref3$value;
if (!Array.isArray(marks)) {
var count = 1 + Math.round(range / step);
while (count > marks.push({
value: step * marks.length + min
marks.forEach(function (mark, index) {
if (mark.value < min || mark.value > max) {
var key = "mark-".concat(index);
var isFilled = mark.value <= value;
var offset = "".concat((mark.value - min) / range * 100, "%");
var offsetStyle = Object(esm_defineProperty["a" /* default */])({}, Object(external_wp_i18n_["isRTL"])() ? 'right' : 'left', offset);
placedMarks.push(rail_objectSpread(rail_objectSpread({}, mark), {}, {