Edit File by line
/home/barbar84/www/wp-inclu.../js/dist
File: components.js
}, Object(external_wp_element_["createElement"])(box_control_styles_UnitControl, Object(esm_extends["a" /* default */])({
[20000] Fix | Delete
"aria-label": label,
[20001] Fix | Delete
className: "component-box-control__unit-control",
[20002] Fix | Delete
hideHTMLArrows: true,
[20003] Fix | Delete
isFirst: isFirst,
[20004] Fix | Delete
isLast: isLast,
[20005] Fix | Delete
isOnly: isOnly,
[20006] Fix | Delete
isPressEnterToChange: true,
[20007] Fix | Delete
isResetValueOnUnitChange: false,
[20008] Fix | Delete
value: value
[20009] Fix | Delete
}, props))));
[20010] Fix | Delete
}
[20011] Fix | Delete
[20012] Fix | Delete
function Tooltip(_ref3) {
[20013] Fix | Delete
var children = _ref3.children,
[20014] Fix | Delete
text = _ref3.text;
[20015] Fix | Delete
if (!text) return children;
[20016] Fix | Delete
/**
[20017] Fix | Delete
* Wrapping the children in a `<div />` as Tooltip as it attempts
[20018] Fix | Delete
* to render the <UnitControl />. Using a plain `<div />` appears to
[20019] Fix | Delete
* resolve this issue.
[20020] Fix | Delete
*
[20021] Fix | Delete
* Originally discovered and referenced here:
[20022] Fix | Delete
* https://github.com/WordPress/gutenberg/pull/24966#issuecomment-685875026
[20023] Fix | Delete
*/
[20024] Fix | Delete
[20025] Fix | Delete
return Object(external_wp_element_["createElement"])(build_module_tooltip["a" /* default */], {
[20026] Fix | Delete
text: text,
[20027] Fix | Delete
position: "top"
[20028] Fix | Delete
}, Object(external_wp_element_["createElement"])("div", null, children));
[20029] Fix | Delete
}
[20030] Fix | Delete
[20031] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/utils.js
[20032] Fix | Delete
/**
[20033] Fix | Delete
* External dependencies
[20034] Fix | Delete
*/
[20035] Fix | Delete
[20036] Fix | Delete
/**
[20037] Fix | Delete
* WordPress dependencies
[20038] Fix | Delete
*/
[20039] Fix | Delete
[20040] Fix | Delete
[20041] Fix | Delete
/**
[20042] Fix | Delete
* Internal dependencies
[20043] Fix | Delete
*/
[20044] Fix | Delete
[20045] Fix | Delete
[20046] Fix | Delete
var LABELS = {
[20047] Fix | Delete
all: Object(external_wp_i18n_["__"])('All'),
[20048] Fix | Delete
top: Object(external_wp_i18n_["__"])('Top'),
[20049] Fix | Delete
bottom: Object(external_wp_i18n_["__"])('Bottom'),
[20050] Fix | Delete
left: Object(external_wp_i18n_["__"])('Left'),
[20051] Fix | Delete
right: Object(external_wp_i18n_["__"])('Right'),
[20052] Fix | Delete
mixed: Object(external_wp_i18n_["__"])('Mixed')
[20053] Fix | Delete
};
[20054] Fix | Delete
var DEFAULT_VALUES = {
[20055] Fix | Delete
top: null,
[20056] Fix | Delete
right: null,
[20057] Fix | Delete
bottom: null,
[20058] Fix | Delete
left: null
[20059] Fix | Delete
};
[20060] Fix | Delete
var DEFAULT_VISUALIZER_VALUES = {
[20061] Fix | Delete
top: false,
[20062] Fix | Delete
right: false,
[20063] Fix | Delete
bottom: false,
[20064] Fix | Delete
left: false
[20065] Fix | Delete
};
[20066] Fix | Delete
/**
[20067] Fix | Delete
* Gets an items with the most occurance within an array
[20068] Fix | Delete
* https://stackoverflow.com/a/20762713
[20069] Fix | Delete
*
[20070] Fix | Delete
* @param {Array<any>} arr Array of items to check.
[20071] Fix | Delete
* @return {any} The item with the most occurances.
[20072] Fix | Delete
*/
[20073] Fix | Delete
[20074] Fix | Delete
function mode(arr) {
[20075] Fix | Delete
return arr.sort(function (a, b) {
[20076] Fix | Delete
return arr.filter(function (v) {
[20077] Fix | Delete
return v === a;
[20078] Fix | Delete
}).length - arr.filter(function (v) {
[20079] Fix | Delete
return v === b;
[20080] Fix | Delete
}).length;
[20081] Fix | Delete
}).pop();
[20082] Fix | Delete
}
[20083] Fix | Delete
/**
[20084] Fix | Delete
* Gets the 'all' input value and unit from values data.
[20085] Fix | Delete
*
[20086] Fix | Delete
* @param {Object} values Box values.
[20087] Fix | Delete
* @return {string} A value + unit for the 'all' input.
[20088] Fix | Delete
*/
[20089] Fix | Delete
[20090] Fix | Delete
[20091] Fix | Delete
function getAllValue() {
[20092] Fix | Delete
var values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
[20093] Fix | Delete
var parsedValues = Object.values(values).map(function (value) {
[20094] Fix | Delete
return parseUnit(value);
[20095] Fix | Delete
});
[20096] Fix | Delete
var allValues = parsedValues.map(function (value) {
[20097] Fix | Delete
return value[0];
[20098] Fix | Delete
});
[20099] Fix | Delete
var allUnits = parsedValues.map(function (value) {
[20100] Fix | Delete
return value[1];
[20101] Fix | Delete
});
[20102] Fix | Delete
var value = allValues.every(function (v) {
[20103] Fix | Delete
return v === allValues[0];
[20104] Fix | Delete
}) ? allValues[0] : '';
[20105] Fix | Delete
var unit = mode(allUnits);
[20106] Fix | Delete
/**
[20107] Fix | Delete
* The isNumber check is important. On reset actions, the incoming value
[20108] Fix | Delete
* may be null or an empty string.
[20109] Fix | Delete
*
[20110] Fix | Delete
* Also, the value may also be zero (0), which is considered a valid unit value.
[20111] Fix | Delete
*
[20112] Fix | Delete
* isNumber() is more specific for these cases, rather than relying on a
[20113] Fix | Delete
* simple truthy check.
[20114] Fix | Delete
*/
[20115] Fix | Delete
[20116] Fix | Delete
var allValue = Object(external_lodash_["isNumber"])(value) ? "".concat(value).concat(unit) : null;
[20117] Fix | Delete
return allValue;
[20118] Fix | Delete
}
[20119] Fix | Delete
/**
[20120] Fix | Delete
* Checks to determine if values are mixed.
[20121] Fix | Delete
*
[20122] Fix | Delete
* @param {Object} values Box values.
[20123] Fix | Delete
* @return {boolean} Whether values are mixed.
[20124] Fix | Delete
*/
[20125] Fix | Delete
[20126] Fix | Delete
function isValuesMixed() {
[20127] Fix | Delete
var values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
[20128] Fix | Delete
var allValue = getAllValue(values);
[20129] Fix | Delete
var isMixed = isNaN(parseFloat(allValue));
[20130] Fix | Delete
return isMixed;
[20131] Fix | Delete
}
[20132] Fix | Delete
/**
[20133] Fix | Delete
* Checks to determine if values are defined.
[20134] Fix | Delete
*
[20135] Fix | Delete
* @param {Object} values Box values.
[20136] Fix | Delete
*
[20137] Fix | Delete
* @return {boolean} Whether values are mixed.
[20138] Fix | Delete
*/
[20139] Fix | Delete
[20140] Fix | Delete
function isValuesDefined(values) {
[20141] Fix | Delete
return values !== undefined && !Object(external_lodash_["isEmpty"])(Object.values(values).filter(Boolean));
[20142] Fix | Delete
}
[20143] Fix | Delete
[20144] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/all-input-control.js
[20145] Fix | Delete
[20146] Fix | Delete
[20147] Fix | Delete
[20148] Fix | Delete
[20149] Fix | Delete
[20150] Fix | Delete
function all_input_control_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; }
[20151] Fix | Delete
[20152] Fix | Delete
function all_input_control_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { all_input_control_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 { all_input_control_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
[20153] Fix | Delete
[20154] Fix | Delete
/**
[20155] Fix | Delete
* External dependencies
[20156] Fix | Delete
*/
[20157] Fix | Delete
[20158] Fix | Delete
/**
[20159] Fix | Delete
* Internal dependencies
[20160] Fix | Delete
*/
[20161] Fix | Delete
[20162] Fix | Delete
[20163] Fix | Delete
[20164] Fix | Delete
function AllInputControl(_ref) {
[20165] Fix | Delete
var _ref$onChange = _ref.onChange,
[20166] Fix | Delete
onChange = _ref$onChange === void 0 ? external_lodash_["noop"] : _ref$onChange,
[20167] Fix | Delete
_ref$onFocus = _ref.onFocus,
[20168] Fix | Delete
onFocus = _ref$onFocus === void 0 ? external_lodash_["noop"] : _ref$onFocus,
[20169] Fix | Delete
_ref$onHoverOn = _ref.onHoverOn,
[20170] Fix | Delete
onHoverOn = _ref$onHoverOn === void 0 ? external_lodash_["noop"] : _ref$onHoverOn,
[20171] Fix | Delete
_ref$onHoverOff = _ref.onHoverOff,
[20172] Fix | Delete
onHoverOff = _ref$onHoverOff === void 0 ? external_lodash_["noop"] : _ref$onHoverOff,
[20173] Fix | Delete
values = _ref.values,
[20174] Fix | Delete
props = Object(objectWithoutProperties["a" /* default */])(_ref, ["onChange", "onFocus", "onHoverOn", "onHoverOff", "values"]);
[20175] Fix | Delete
[20176] Fix | Delete
var allValue = getAllValue(values);
[20177] Fix | Delete
var hasValues = isValuesDefined(values);
[20178] Fix | Delete
var isMixed = hasValues && isValuesMixed(values);
[20179] Fix | Delete
var allPlaceholder = isMixed ? LABELS.mixed : null;
[20180] Fix | Delete
[20181] Fix | Delete
var handleOnFocus = function handleOnFocus(event) {
[20182] Fix | Delete
onFocus(event, {
[20183] Fix | Delete
side: 'all'
[20184] Fix | Delete
});
[20185] Fix | Delete
};
[20186] Fix | Delete
[20187] Fix | Delete
var handleOnChange = function handleOnChange(next) {
[20188] Fix | Delete
var nextValues = all_input_control_objectSpread({}, values);
[20189] Fix | Delete
[20190] Fix | Delete
nextValues.top = next;
[20191] Fix | Delete
nextValues.bottom = next;
[20192] Fix | Delete
nextValues.left = next;
[20193] Fix | Delete
nextValues.right = next;
[20194] Fix | Delete
onChange(nextValues);
[20195] Fix | Delete
};
[20196] Fix | Delete
[20197] Fix | Delete
var handleOnHoverOn = function handleOnHoverOn() {
[20198] Fix | Delete
onHoverOn({
[20199] Fix | Delete
top: true,
[20200] Fix | Delete
bottom: true,
[20201] Fix | Delete
left: true,
[20202] Fix | Delete
right: true
[20203] Fix | Delete
});
[20204] Fix | Delete
};
[20205] Fix | Delete
[20206] Fix | Delete
var handleOnHoverOff = function handleOnHoverOff() {
[20207] Fix | Delete
onHoverOff({
[20208] Fix | Delete
top: false,
[20209] Fix | Delete
bottom: false,
[20210] Fix | Delete
left: false,
[20211] Fix | Delete
right: false
[20212] Fix | Delete
});
[20213] Fix | Delete
};
[20214] Fix | Delete
[20215] Fix | Delete
return Object(external_wp_element_["createElement"])(BoxUnitControl, Object(esm_extends["a" /* default */])({}, props, {
[20216] Fix | Delete
disableUnits: isMixed,
[20217] Fix | Delete
isOnly: true,
[20218] Fix | Delete
value: allValue,
[20219] Fix | Delete
onChange: handleOnChange,
[20220] Fix | Delete
onFocus: handleOnFocus,
[20221] Fix | Delete
onHoverOn: handleOnHoverOn,
[20222] Fix | Delete
onHoverOff: handleOnHoverOff,
[20223] Fix | Delete
placeholder: allPlaceholder
[20224] Fix | Delete
}));
[20225] Fix | Delete
}
[20226] Fix | Delete
[20227] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/input-controls.js
[20228] Fix | Delete
[20229] Fix | Delete
[20230] Fix | Delete
[20231] Fix | Delete
[20232] Fix | Delete
[20233] Fix | Delete
function input_controls_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; }
[20234] Fix | Delete
[20235] Fix | Delete
function input_controls_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { input_controls_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 { input_controls_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
[20236] Fix | Delete
[20237] Fix | Delete
/**
[20238] Fix | Delete
* External dependencies
[20239] Fix | Delete
*/
[20240] Fix | Delete
[20241] Fix | Delete
/**
[20242] Fix | Delete
* Internal dependencies
[20243] Fix | Delete
*/
[20244] Fix | Delete
[20245] Fix | Delete
[20246] Fix | Delete
[20247] Fix | Delete
[20248] Fix | Delete
function BoxInputControls(_ref) {
[20249] Fix | Delete
var _ref$onChange = _ref.onChange,
[20250] Fix | Delete
onChange = _ref$onChange === void 0 ? external_lodash_["noop"] : _ref$onChange,
[20251] Fix | Delete
_ref$onFocus = _ref.onFocus,
[20252] Fix | Delete
onFocus = _ref$onFocus === void 0 ? external_lodash_["noop"] : _ref$onFocus,
[20253] Fix | Delete
_ref$onHoverOn = _ref.onHoverOn,
[20254] Fix | Delete
onHoverOn = _ref$onHoverOn === void 0 ? external_lodash_["noop"] : _ref$onHoverOn,
[20255] Fix | Delete
_ref$onHoverOff = _ref.onHoverOff,
[20256] Fix | Delete
onHoverOff = _ref$onHoverOff === void 0 ? external_lodash_["noop"] : _ref$onHoverOff,
[20257] Fix | Delete
values = _ref.values,
[20258] Fix | Delete
props = Object(objectWithoutProperties["a" /* default */])(_ref, ["onChange", "onFocus", "onHoverOn", "onHoverOff", "values"]);
[20259] Fix | Delete
[20260] Fix | Delete
var createHandleOnFocus = function createHandleOnFocus(side) {
[20261] Fix | Delete
return function (event) {
[20262] Fix | Delete
onFocus(event, {
[20263] Fix | Delete
side: side
[20264] Fix | Delete
});
[20265] Fix | Delete
};
[20266] Fix | Delete
};
[20267] Fix | Delete
[20268] Fix | Delete
var createHandleOnHoverOn = function createHandleOnHoverOn(side) {
[20269] Fix | Delete
return function () {
[20270] Fix | Delete
onHoverOn(Object(esm_defineProperty["a" /* default */])({}, side, true));
[20271] Fix | Delete
};
[20272] Fix | Delete
};
[20273] Fix | Delete
[20274] Fix | Delete
var createHandleOnHoverOff = function createHandleOnHoverOff(side) {
[20275] Fix | Delete
return function () {
[20276] Fix | Delete
onHoverOff(Object(esm_defineProperty["a" /* default */])({}, side, false));
[20277] Fix | Delete
};
[20278] Fix | Delete
};
[20279] Fix | Delete
[20280] Fix | Delete
var handleOnChange = function handleOnChange(nextValues) {
[20281] Fix | Delete
onChange(nextValues);
[20282] Fix | Delete
};
[20283] Fix | Delete
[20284] Fix | Delete
var top = values.top,
[20285] Fix | Delete
right = values.right,
[20286] Fix | Delete
bottom = values.bottom,
[20287] Fix | Delete
left = values.left;
[20288] Fix | Delete
[20289] Fix | Delete
var createHandleOnChange = function createHandleOnChange(side) {
[20290] Fix | Delete
return function (next, _ref2) {
[20291] Fix | Delete
var event = _ref2.event;
[20292] Fix | Delete
var altKey = event.altKey;
[20293] Fix | Delete
[20294] Fix | Delete
var nextValues = input_controls_objectSpread({}, values);
[20295] Fix | Delete
[20296] Fix | Delete
nextValues[side] = next;
[20297] Fix | Delete
/**
[20298] Fix | Delete
* Supports changing pair sides. For example, holding the ALT key
[20299] Fix | Delete
* when changing the TOP will also update BOTTOM.
[20300] Fix | Delete
*/
[20301] Fix | Delete
[20302] Fix | Delete
if (altKey) {
[20303] Fix | Delete
switch (side) {
[20304] Fix | Delete
case 'top':
[20305] Fix | Delete
nextValues.bottom = next;
[20306] Fix | Delete
break;
[20307] Fix | Delete
[20308] Fix | Delete
case 'bottom':
[20309] Fix | Delete
nextValues.top = next;
[20310] Fix | Delete
break;
[20311] Fix | Delete
[20312] Fix | Delete
case 'left':
[20313] Fix | Delete
nextValues.right = next;
[20314] Fix | Delete
break;
[20315] Fix | Delete
[20316] Fix | Delete
case 'right':
[20317] Fix | Delete
nextValues.left = next;
[20318] Fix | Delete
break;
[20319] Fix | Delete
}
[20320] Fix | Delete
}
[20321] Fix | Delete
[20322] Fix | Delete
handleOnChange(nextValues);
[20323] Fix | Delete
};
[20324] Fix | Delete
};
[20325] Fix | Delete
[20326] Fix | Delete
return Object(external_wp_element_["createElement"])(LayoutContainer, {
[20327] Fix | Delete
className: "component-box-control__input-controls-wrapper"
[20328] Fix | Delete
}, Object(external_wp_element_["createElement"])(Layout, {
[20329] Fix | Delete
gap: 0,
[20330] Fix | Delete
align: "top",
[20331] Fix | Delete
className: "component-box-control__input-controls"
[20332] Fix | Delete
}, Object(external_wp_element_["createElement"])(BoxUnitControl, Object(esm_extends["a" /* default */])({}, props, {
[20333] Fix | Delete
isFirst: true,
[20334] Fix | Delete
value: top,
[20335] Fix | Delete
onChange: createHandleOnChange('top'),
[20336] Fix | Delete
onFocus: createHandleOnFocus('top'),
[20337] Fix | Delete
onHoverOn: createHandleOnHoverOn('top'),
[20338] Fix | Delete
onHoverOff: createHandleOnHoverOff('top'),
[20339] Fix | Delete
label: LABELS.top
[20340] Fix | Delete
})), Object(external_wp_element_["createElement"])(BoxUnitControl, Object(esm_extends["a" /* default */])({}, props, {
[20341] Fix | Delete
value: right,
[20342] Fix | Delete
onChange: createHandleOnChange('right'),
[20343] Fix | Delete
onFocus: createHandleOnFocus('right'),
[20344] Fix | Delete
onHoverOn: createHandleOnHoverOn('right'),
[20345] Fix | Delete
onHoverOff: createHandleOnHoverOff('right'),
[20346] Fix | Delete
label: LABELS.right
[20347] Fix | Delete
})), Object(external_wp_element_["createElement"])(BoxUnitControl, Object(esm_extends["a" /* default */])({}, props, {
[20348] Fix | Delete
value: bottom,
[20349] Fix | Delete
onChange: createHandleOnChange('bottom'),
[20350] Fix | Delete
onFocus: createHandleOnFocus('bottom'),
[20351] Fix | Delete
onHoverOn: createHandleOnHoverOn('bottom'),
[20352] Fix | Delete
onHoverOff: createHandleOnHoverOff('bottom'),
[20353] Fix | Delete
label: LABELS.bottom
[20354] Fix | Delete
})), Object(external_wp_element_["createElement"])(BoxUnitControl, Object(esm_extends["a" /* default */])({}, props, {
[20355] Fix | Delete
isLast: true,
[20356] Fix | Delete
value: left,
[20357] Fix | Delete
onChange: createHandleOnChange('left'),
[20358] Fix | Delete
onFocus: createHandleOnFocus('left'),
[20359] Fix | Delete
onHoverOn: createHandleOnHoverOn('left'),
[20360] Fix | Delete
onHoverOff: createHandleOnHoverOff('left'),
[20361] Fix | Delete
label: LABELS.left
[20362] Fix | Delete
}))));
[20363] Fix | Delete
}
[20364] Fix | Delete
[20365] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/styles/box-control-icon-styles.js
[20366] Fix | Delete
[20367] Fix | Delete
[20368] Fix | Delete
function box_control_icon_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)."; }
[20369] Fix | Delete
[20370] Fix | Delete
/**
[20371] Fix | Delete
* External dependencies
[20372] Fix | Delete
*/
[20373] Fix | Delete
[20374] Fix | Delete
var box_control_icon_styles_Root = styled_base_browser_esm("span", {
[20375] Fix | Delete
target: "eaw9yqk0",
[20376] Fix | Delete
label: "Root"
[20377] Fix | Delete
})( true ? {
[20378] Fix | Delete
name: "1qtciqq",
[20379] Fix | Delete
styles: "box-sizing:border-box;display:block;width:24px;height:24px;position:relative;padding:4px;"
[20380] Fix | Delete
} : undefined);
[20381] Fix | Delete
var Viewbox = styled_base_browser_esm("span", {
[20382] Fix | Delete
target: "eaw9yqk1",
[20383] Fix | Delete
label: "Viewbox"
[20384] Fix | Delete
})( true ? {
[20385] Fix | Delete
name: "be7uli",
[20386] Fix | Delete
styles: "box-sizing:border-box;display:block;position:relative;width:100%;height:100%;"
[20387] Fix | Delete
} : undefined);
[20388] Fix | Delete
[20389] Fix | Delete
var box_control_icon_styles_strokeFocus = function strokeFocus(_ref) {
[20390] Fix | Delete
var isFocused = _ref.isFocused;
[20391] Fix | Delete
return /*#__PURE__*/Object(core_browser_esm["b" /* css */])({
[20392] Fix | Delete
backgroundColor: 'currentColor',
[20393] Fix | Delete
opacity: isFocused ? 1 : 0.3
[20394] Fix | Delete
}, true ? "" : undefined);
[20395] Fix | Delete
};
[20396] Fix | Delete
[20397] Fix | Delete
var Stroke = styled_base_browser_esm("span", {
[20398] Fix | Delete
target: "eaw9yqk2",
[20399] Fix | Delete
label: "Stroke"
[20400] Fix | Delete
})("box-sizing:border-box;display:block;pointer-events:none;position:absolute;", box_control_icon_styles_strokeFocus, ";" + ( true ? "" : undefined));
[20401] Fix | Delete
[20402] Fix | Delete
var VerticalStroke = /*#__PURE__*/styled_base_browser_esm(Stroke, {
[20403] Fix | Delete
target: "eaw9yqk3",
[20404] Fix | Delete
label: "VerticalStroke"
[20405] Fix | Delete
})( true ? {
[20406] Fix | Delete
name: "r820ty",
[20407] Fix | Delete
styles: "bottom:3px;top:3px;width:2px;"
[20408] Fix | Delete
} : undefined);
[20409] Fix | Delete
[20410] Fix | Delete
var HorizontalStroke = /*#__PURE__*/styled_base_browser_esm(Stroke, {
[20411] Fix | Delete
target: "eaw9yqk4",
[20412] Fix | Delete
label: "HorizontalStroke"
[20413] Fix | Delete
})( true ? {
[20414] Fix | Delete
name: "1gteeqa",
[20415] Fix | Delete
styles: "height:2px;left:3px;right:3px;"
[20416] Fix | Delete
} : undefined);
[20417] Fix | Delete
[20418] Fix | Delete
var TopStroke = /*#__PURE__*/styled_base_browser_esm(HorizontalStroke, {
[20419] Fix | Delete
target: "eaw9yqk5",
[20420] Fix | Delete
label: "TopStroke"
[20421] Fix | Delete
})( true ? {
[20422] Fix | Delete
name: "1etxbbi",
[20423] Fix | Delete
styles: "top:0;"
[20424] Fix | Delete
} : undefined);
[20425] Fix | Delete
var RightStroke = /*#__PURE__*/styled_base_browser_esm(VerticalStroke, {
[20426] Fix | Delete
target: "eaw9yqk6",
[20427] Fix | Delete
label: "RightStroke"
[20428] Fix | Delete
})( true ? {
[20429] Fix | Delete
name: "19zs6va",
[20430] Fix | Delete
styles: "right:0;"
[20431] Fix | Delete
} : undefined);
[20432] Fix | Delete
var BottomStroke = /*#__PURE__*/styled_base_browser_esm(HorizontalStroke, {
[20433] Fix | Delete
target: "eaw9yqk7",
[20434] Fix | Delete
label: "BottomStroke"
[20435] Fix | Delete
})( true ? {
[20436] Fix | Delete
name: "lh0t43",
[20437] Fix | Delete
styles: "bottom:0;"
[20438] Fix | Delete
} : undefined);
[20439] Fix | Delete
var LeftStroke = /*#__PURE__*/styled_base_browser_esm(VerticalStroke, {
[20440] Fix | Delete
target: "eaw9yqk8",
[20441] Fix | Delete
label: "LeftStroke"
[20442] Fix | Delete
})( true ? {
[20443] Fix | Delete
name: "260zpl",
[20444] Fix | Delete
styles: "left:0;"
[20445] Fix | Delete
} : undefined);
[20446] Fix | Delete
[20447] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/icon.js
[20448] Fix | Delete
[20449] Fix | Delete
[20450] Fix | Delete
[20451] Fix | Delete
[20452] Fix | Delete
/**
[20453] Fix | Delete
* Internal dependencies
[20454] Fix | Delete
*/
[20455] Fix | Delete
[20456] Fix | Delete
var BASE_ICON_SIZE = 24;
[20457] Fix | Delete
function BoxControlIcon(_ref) {
[20458] Fix | Delete
var _ref$size = _ref.size,
[20459] Fix | Delete
size = _ref$size === void 0 ? 24 : _ref$size,
[20460] Fix | Delete
_ref$side = _ref.side,
[20461] Fix | Delete
side = _ref$side === void 0 ? 'all' : _ref$side,
[20462] Fix | Delete
props = Object(objectWithoutProperties["a" /* default */])(_ref, ["size", "side"]);
[20463] Fix | Delete
[20464] Fix | Delete
var top = getSide(side, 'top');
[20465] Fix | Delete
var right = getSide(side, 'right');
[20466] Fix | Delete
var bottom = getSide(side, 'bottom');
[20467] Fix | Delete
var left = getSide(side, 'left'); // Simulates SVG Icon scaling
[20468] Fix | Delete
[20469] Fix | Delete
var scale = size / BASE_ICON_SIZE;
[20470] Fix | Delete
return Object(external_wp_element_["createElement"])(box_control_icon_styles_Root, Object(esm_extends["a" /* default */])({
[20471] Fix | Delete
style: {
[20472] Fix | Delete
transform: "scale(".concat(scale, ")")
[20473] Fix | Delete
}
[20474] Fix | Delete
}, props), Object(external_wp_element_["createElement"])(Viewbox, null, Object(external_wp_element_["createElement"])(TopStroke, {
[20475] Fix | Delete
isFocused: top
[20476] Fix | Delete
}), Object(external_wp_element_["createElement"])(RightStroke, {
[20477] Fix | Delete
isFocused: right
[20478] Fix | Delete
}), Object(external_wp_element_["createElement"])(BottomStroke, {
[20479] Fix | Delete
isFocused: bottom
[20480] Fix | Delete
}), Object(external_wp_element_["createElement"])(LeftStroke, {
[20481] Fix | Delete
isFocused: left
[20482] Fix | Delete
})));
[20483] Fix | Delete
}
[20484] Fix | Delete
[20485] Fix | Delete
function getSide(side, value) {
[20486] Fix | Delete
return side === 'all' || side === value;
[20487] Fix | Delete
}
[20488] Fix | Delete
[20489] Fix | Delete
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/link.js
[20490] Fix | Delete
var library_link = __webpack_require__("Bpkj");
[20491] Fix | Delete
[20492] Fix | Delete
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/link-off.js
[20493] Fix | Delete
var link_off = __webpack_require__("Mp0b");
[20494] Fix | Delete
[20495] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/linked-button.js
[20496] Fix | Delete
[20497] Fix | Delete
[20498] Fix | Delete
[20499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function