Edit File by line
/home/barbar84/www/wp-inclu.../js/dist
File: components.js
} else {
[13000] Fix | Delete
var targetIsItem = isItem(options.items, event.target);
[13001] Fix | Delete
[13002] Fix | Delete
if (!targetIsItem && currentElement) {
[13003] Fix | Delete
// If target is not a composite item, it may be the composite
[13004] Fix | Delete
// element itself (isSelfTarget) or a tabbable element inside the
[13005] Fix | Delete
// composite widget. This may be triggered by clicking outside the
[13006] Fix | Delete
// composite widget or by tabbing out of it. In either cases we
[13007] Fix | Delete
// want to fire a blur event on the current item.
[13008] Fix | Delete
fireBlurEvent(currentElement, event);
[13009] Fix | Delete
}
[13010] Fix | Delete
}
[13011] Fix | Delete
}, [options.unstable_virtual, options.items, currentItem]);
[13012] Fix | Delete
var onKeyDown = Object(external_React_["useCallback"])(function (event) {
[13013] Fix | Delete
var _onKeyDownRef$current, _options$groups;
[13014] Fix | Delete
[13015] Fix | Delete
(_onKeyDownRef$current = onKeyDownRef.current) === null || _onKeyDownRef$current === void 0 ? void 0 : _onKeyDownRef$current.call(onKeyDownRef, event);
[13016] Fix | Delete
if (event.defaultPrevented) return;
[13017] Fix | Delete
if (options.currentId !== null) return;
[13018] Fix | Delete
if (!Object(isSelfTarget["a" /* isSelfTarget */])(event)) return;
[13019] Fix | Delete
var isVertical = options.orientation !== "horizontal";
[13020] Fix | Delete
var isHorizontal = options.orientation !== "vertical";
[13021] Fix | Delete
var isGrid = !!((_options$groups = options.groups) !== null && _options$groups !== void 0 && _options$groups.length);
[13022] Fix | Delete
[13023] Fix | Delete
var up = function up() {
[13024] Fix | Delete
if (isGrid) {
[13025] Fix | Delete
var item = findFirstEnabledItemInTheLastRow(options.items);
[13026] Fix | Delete
[13027] Fix | Delete
if (item !== null && item !== void 0 && item.id) {
[13028] Fix | Delete
var _options$move;
[13029] Fix | Delete
[13030] Fix | Delete
(_options$move = options.move) === null || _options$move === void 0 ? void 0 : _options$move.call(options, item.id);
[13031] Fix | Delete
}
[13032] Fix | Delete
} else {
[13033] Fix | Delete
var _options$last;
[13034] Fix | Delete
[13035] Fix | Delete
(_options$last = options.last) === null || _options$last === void 0 ? void 0 : _options$last.call(options);
[13036] Fix | Delete
}
[13037] Fix | Delete
};
[13038] Fix | Delete
[13039] Fix | Delete
var keyMap = {
[13040] Fix | Delete
ArrowUp: (isGrid || isVertical) && up,
[13041] Fix | Delete
ArrowRight: (isGrid || isHorizontal) && options.first,
[13042] Fix | Delete
ArrowDown: (isGrid || isVertical) && options.first,
[13043] Fix | Delete
ArrowLeft: (isGrid || isHorizontal) && options.last,
[13044] Fix | Delete
Home: options.first,
[13045] Fix | Delete
End: options.last,
[13046] Fix | Delete
PageUp: options.first,
[13047] Fix | Delete
PageDown: options.last
[13048] Fix | Delete
};
[13049] Fix | Delete
var action = keyMap[event.key];
[13050] Fix | Delete
[13051] Fix | Delete
if (action) {
[13052] Fix | Delete
event.preventDefault();
[13053] Fix | Delete
action();
[13054] Fix | Delete
}
[13055] Fix | Delete
}, [options.currentId, options.orientation, options.groups, options.items, options.move, options.last, options.first]);
[13056] Fix | Delete
return Object(_rollupPluginBabelHelpers_1f0bf8c2["b" /* a */])({
[13057] Fix | Delete
ref: Object(useForkRef["a" /* useForkRef */])(ref, htmlRef),
[13058] Fix | Delete
id: options.baseId,
[13059] Fix | Delete
onFocus: onFocus,
[13060] Fix | Delete
onFocusCapture: onFocusCapture,
[13061] Fix | Delete
onBlurCapture: onBlurCapture,
[13062] Fix | Delete
onKeyDownCapture: onKeyDownCapture,
[13063] Fix | Delete
onKeyDown: onKeyDown,
[13064] Fix | Delete
onKeyUpCapture: onKeyUpCapture,
[13065] Fix | Delete
"aria-activedescendant": options.unstable_virtual ? (currentItem === null || currentItem === void 0 ? void 0 : currentItem.id) || undefined : undefined
[13066] Fix | Delete
}, htmlProps);
[13067] Fix | Delete
},
[13068] Fix | Delete
useComposeProps: function useComposeProps(options, htmlProps) {
[13069] Fix | Delete
htmlProps = Object(Role["a" /* useRole */])(options, htmlProps, true);
[13070] Fix | Delete
var tabbableHTMLProps = Object(Tabbable["a" /* useTabbable */])(options, htmlProps, true);
[13071] Fix | Delete
[13072] Fix | Delete
if (options.unstable_virtual || options.currentId === null) {
[13073] Fix | Delete
// Composite will only be tabbable by default if the focus is managed
[13074] Fix | Delete
// using aria-activedescendant, which requires DOM focus on the container
[13075] Fix | Delete
// element (the composite)
[13076] Fix | Delete
return Object(_rollupPluginBabelHelpers_1f0bf8c2["b" /* a */])({
[13077] Fix | Delete
tabIndex: 0
[13078] Fix | Delete
}, tabbableHTMLProps);
[13079] Fix | Delete
}
[13080] Fix | Delete
[13081] Fix | Delete
return Object(_rollupPluginBabelHelpers_1f0bf8c2["b" /* a */])(Object(_rollupPluginBabelHelpers_1f0bf8c2["b" /* a */])({}, htmlProps), {}, {
[13082] Fix | Delete
ref: tabbableHTMLProps.ref
[13083] Fix | Delete
});
[13084] Fix | Delete
}
[13085] Fix | Delete
});
[13086] Fix | Delete
var Composite = Object(createComponent["a" /* createComponent */])({
[13087] Fix | Delete
as: "div",
[13088] Fix | Delete
useHook: useComposite,
[13089] Fix | Delete
useCreateElement: function useCreateElement$1(type, props, children) {
[13090] Fix | Delete
false ? undefined : void 0;
[13091] Fix | Delete
return Object(useCreateElement["a" /* useCreateElement */])(type, props, children);
[13092] Fix | Delete
}
[13093] Fix | Delete
});
[13094] Fix | Delete
[13095] Fix | Delete
[13096] Fix | Delete
[13097] Fix | Delete
// EXTERNAL MODULE: ./node_modules/reakit/es/Id/Id.js
[13098] Fix | Delete
var Id = __webpack_require__("ym77");
[13099] Fix | Delete
[13100] Fix | Delete
// CONCATENATED MODULE: ./node_modules/reakit/es/Group/Group.js
[13101] Fix | Delete
[13102] Fix | Delete
[13103] Fix | Delete
[13104] Fix | Delete
[13105] Fix | Delete
[13106] Fix | Delete
[13107] Fix | Delete
// Automatically generated
[13108] Fix | Delete
var GROUP_KEYS = [];
[13109] Fix | Delete
[13110] Fix | Delete
var useGroup = Object(createHook["a" /* createHook */])({
[13111] Fix | Delete
name: "Group",
[13112] Fix | Delete
compose: Role["a" /* useRole */],
[13113] Fix | Delete
keys: GROUP_KEYS,
[13114] Fix | Delete
useProps: function useProps(_, htmlProps) {
[13115] Fix | Delete
return Object(_rollupPluginBabelHelpers_1f0bf8c2["b" /* a */])({
[13116] Fix | Delete
role: "group"
[13117] Fix | Delete
}, htmlProps);
[13118] Fix | Delete
}
[13119] Fix | Delete
});
[13120] Fix | Delete
var Group = Object(createComponent["a" /* createComponent */])({
[13121] Fix | Delete
as: "div",
[13122] Fix | Delete
useHook: useGroup
[13123] Fix | Delete
});
[13124] Fix | Delete
[13125] Fix | Delete
[13126] Fix | Delete
[13127] Fix | Delete
// CONCATENATED MODULE: ./node_modules/reakit/es/Composite/CompositeGroup.js
[13128] Fix | Delete
[13129] Fix | Delete
[13130] Fix | Delete
[13131] Fix | Delete
[13132] Fix | Delete
[13133] Fix | Delete
[13134] Fix | Delete
[13135] Fix | Delete
[13136] Fix | Delete
[13137] Fix | Delete
[13138] Fix | Delete
[13139] Fix | Delete
[13140] Fix | Delete
[13141] Fix | Delete
[13142] Fix | Delete
var useCompositeGroup = Object(createHook["a" /* createHook */])({
[13143] Fix | Delete
name: "CompositeGroup",
[13144] Fix | Delete
compose: [useGroup, Id["a" /* unstable_useId */]],
[13145] Fix | Delete
keys: _keys_6742f591["b" /* a */],
[13146] Fix | Delete
propsAreEqual: function propsAreEqual(prev, next) {
[13147] Fix | Delete
if (!next.id || prev.id !== next.id) {
[13148] Fix | Delete
return useGroup.unstable_propsAreEqual(prev, next);
[13149] Fix | Delete
}
[13150] Fix | Delete
[13151] Fix | Delete
var prevCurrentId = prev.currentId,
[13152] Fix | Delete
prevMoves = prev.unstable_moves,
[13153] Fix | Delete
prevProps = Object(_rollupPluginBabelHelpers_1f0bf8c2["a" /* _ */])(prev, ["currentId", "unstable_moves"]);
[13154] Fix | Delete
[13155] Fix | Delete
var nextCurrentId = next.currentId,
[13156] Fix | Delete
nextMoves = next.unstable_moves,
[13157] Fix | Delete
nextProps = Object(_rollupPluginBabelHelpers_1f0bf8c2["a" /* _ */])(next, ["currentId", "unstable_moves"]);
[13158] Fix | Delete
[13159] Fix | Delete
if (prev.items && next.items) {
[13160] Fix | Delete
var prevCurrentItem = findEnabledItemById(prev.items, prevCurrentId);
[13161] Fix | Delete
var nextCurrentItem = findEnabledItemById(next.items, nextCurrentId);
[13162] Fix | Delete
var prevGroupId = prevCurrentItem === null || prevCurrentItem === void 0 ? void 0 : prevCurrentItem.groupId;
[13163] Fix | Delete
var nextGroupId = nextCurrentItem === null || nextCurrentItem === void 0 ? void 0 : nextCurrentItem.groupId;
[13164] Fix | Delete
[13165] Fix | Delete
if (next.id === nextGroupId || next.id === prevGroupId) {
[13166] Fix | Delete
return false;
[13167] Fix | Delete
}
[13168] Fix | Delete
}
[13169] Fix | Delete
[13170] Fix | Delete
return useGroup.unstable_propsAreEqual(prevProps, nextProps);
[13171] Fix | Delete
},
[13172] Fix | Delete
useProps: function useProps(options, _ref) {
[13173] Fix | Delete
var htmlRef = _ref.ref,
[13174] Fix | Delete
htmlProps = Object(_rollupPluginBabelHelpers_1f0bf8c2["a" /* _ */])(_ref, ["ref"]);
[13175] Fix | Delete
[13176] Fix | Delete
var ref = Object(external_React_["useRef"])(null);
[13177] Fix | Delete
var id = options.id; // We need this to be called before CompositeItems' register
[13178] Fix | Delete
[13179] Fix | Delete
Object(useIsomorphicEffect["a" /* useIsomorphicEffect */])(function () {
[13180] Fix | Delete
var _options$registerGrou;
[13181] Fix | Delete
[13182] Fix | Delete
if (!id) return undefined;
[13183] Fix | Delete
(_options$registerGrou = options.registerGroup) === null || _options$registerGrou === void 0 ? void 0 : _options$registerGrou.call(options, {
[13184] Fix | Delete
id: id,
[13185] Fix | Delete
ref: ref
[13186] Fix | Delete
});
[13187] Fix | Delete
return function () {
[13188] Fix | Delete
var _options$unregisterGr;
[13189] Fix | Delete
[13190] Fix | Delete
(_options$unregisterGr = options.unregisterGroup) === null || _options$unregisterGr === void 0 ? void 0 : _options$unregisterGr.call(options, id);
[13191] Fix | Delete
};
[13192] Fix | Delete
}, [id, options.registerGroup, options.unregisterGroup]);
[13193] Fix | Delete
return Object(_rollupPluginBabelHelpers_1f0bf8c2["b" /* a */])({
[13194] Fix | Delete
ref: Object(useForkRef["a" /* useForkRef */])(ref, htmlRef)
[13195] Fix | Delete
}, htmlProps);
[13196] Fix | Delete
}
[13197] Fix | Delete
});
[13198] Fix | Delete
var CompositeGroup = Object(createComponent["a" /* createComponent */])({
[13199] Fix | Delete
as: "div",
[13200] Fix | Delete
useHook: useCompositeGroup
[13201] Fix | Delete
});
[13202] Fix | Delete
[13203] Fix | Delete
[13204] Fix | Delete
[13205] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/alignment-matrix-control/styles/alignment-matrix-control-icon-styles.js
[13206] Fix | Delete
[13207] Fix | Delete
[13208] Fix | Delete
function alignment_matrix_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)."; }
[13209] Fix | Delete
[13210] Fix | Delete
[13211] Fix | Delete
/**
[13212] Fix | Delete
* Internal dependencies
[13213] Fix | Delete
*/
[13214] Fix | Delete
[13215] Fix | Delete
[13216] Fix | Delete
[13217] Fix | Delete
var alignment_matrix_control_icon_styles_rootSize = function rootSize() {
[13218] Fix | Delete
var padding = 1.5;
[13219] Fix | Delete
var size = 24;
[13220] Fix | Delete
return /*#__PURE__*/Object(core_browser_esm["b" /* css */])({
[13221] Fix | Delete
gridTemplateRows: "repeat( 3, calc( ".concat(size - padding * 2, "px / 3))"),
[13222] Fix | Delete
padding: padding,
[13223] Fix | Delete
maxHeight: size,
[13224] Fix | Delete
maxWidth: size
[13225] Fix | Delete
}, true ? "" : undefined);
[13226] Fix | Delete
};
[13227] Fix | Delete
[13228] Fix | Delete
var alignment_matrix_control_icon_styles_rootPointerEvents = function rootPointerEvents(_ref) {
[13229] Fix | Delete
var disablePointerEvents = _ref.disablePointerEvents;
[13230] Fix | Delete
return /*#__PURE__*/Object(core_browser_esm["b" /* css */])({
[13231] Fix | Delete
pointerEvents: disablePointerEvents ? 'none' : null
[13232] Fix | Delete
}, true ? "" : undefined);
[13233] Fix | Delete
};
[13234] Fix | Delete
[13235] Fix | Delete
var alignment_matrix_control_icon_styles_Wrapper = styled_base_browser_esm("div", {
[13236] Fix | Delete
target: "elqsdmc0",
[13237] Fix | Delete
label: "Wrapper"
[13238] Fix | Delete
})( true ? {
[13239] Fix | Delete
name: "co61ta",
[13240] Fix | Delete
styles: "box-sizing:border-box;padding:2px;"
[13241] Fix | Delete
} : undefined);
[13242] Fix | Delete
var alignment_matrix_control_icon_styles_Root = styled_base_browser_esm("div", {
[13243] Fix | Delete
target: "elqsdmc1",
[13244] Fix | Delete
label: "Root"
[13245] Fix | Delete
})("transform-origin:top left;height:100%;width:100%;", rootBase, ";", alignment_matrix_control_icon_styles_rootSize, ";", alignment_matrix_control_icon_styles_rootPointerEvents, ";" + ( true ? "" : undefined));
[13246] Fix | Delete
[13247] Fix | Delete
var alignment_matrix_control_icon_styles_pointActive = function pointActive(_ref2) {
[13248] Fix | Delete
var isActive = _ref2.isActive;
[13249] Fix | Delete
var boxShadow = isActive ? "0 0 0 1px currentColor" : null;
[13250] Fix | Delete
return /*#__PURE__*/Object(core_browser_esm["b" /* css */])("box-shadow:", boxShadow, ";color:currentColor;*:hover > &{color:currentColor;}" + ( true ? "" : undefined));
[13251] Fix | Delete
};
[13252] Fix | Delete
[13253] Fix | Delete
var alignment_matrix_control_icon_styles_Point = styled_base_browser_esm("span", {
[13254] Fix | Delete
target: "elqsdmc2",
[13255] Fix | Delete
label: "Point"
[13256] Fix | Delete
})("height:2px;width:2px;", alignment_matrix_control_styles_pointBase, ";", alignment_matrix_control_icon_styles_pointActive, ";" + ( true ? "" : undefined));
[13257] Fix | Delete
var alignment_matrix_control_icon_styles_Cell = Cell;
[13258] Fix | Delete
[13259] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/alignment-matrix-control/icon.js
[13260] Fix | Delete
[13261] Fix | Delete
[13262] Fix | Delete
[13263] Fix | Delete
[13264] Fix | Delete
[13265] Fix | Delete
function icon_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; }
[13266] Fix | Delete
[13267] Fix | Delete
function icon_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { icon_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 { icon_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
[13268] Fix | Delete
[13269] Fix | Delete
/**
[13270] Fix | Delete
* External dependencies
[13271] Fix | Delete
*/
[13272] Fix | Delete
[13273] Fix | Delete
/**
[13274] Fix | Delete
* Internal dependencies
[13275] Fix | Delete
*/
[13276] Fix | Delete
[13277] Fix | Delete
[13278] Fix | Delete
[13279] Fix | Delete
var BASE_SIZE = 24;
[13280] Fix | Delete
function AlignmentMatrixControlIcon(_ref) {
[13281] Fix | Delete
var className = _ref.className,
[13282] Fix | Delete
_ref$disablePointerEv = _ref.disablePointerEvents,
[13283] Fix | Delete
disablePointerEvents = _ref$disablePointerEv === void 0 ? true : _ref$disablePointerEv,
[13284] Fix | Delete
_ref$size = _ref.size,
[13285] Fix | Delete
size = _ref$size === void 0 ? BASE_SIZE : _ref$size,
[13286] Fix | Delete
_ref$style = _ref.style,
[13287] Fix | Delete
style = _ref$style === void 0 ? {} : _ref$style,
[13288] Fix | Delete
_ref$value = _ref.value,
[13289] Fix | Delete
value = _ref$value === void 0 ? 'center' : _ref$value,
[13290] Fix | Delete
props = Object(objectWithoutProperties["a" /* default */])(_ref, ["className", "disablePointerEvents", "size", "style", "value"]);
[13291] Fix | Delete
[13292] Fix | Delete
var alignIndex = getAlignmentIndex(value);
[13293] Fix | Delete
var scale = (size / BASE_SIZE).toFixed(2);
[13294] Fix | Delete
var classes = classnames_default()('component-alignment-matrix-control-icon', className);
[13295] Fix | Delete
[13296] Fix | Delete
var styles = icon_objectSpread(icon_objectSpread({}, style), {}, {
[13297] Fix | Delete
transform: "scale(".concat(scale, ")")
[13298] Fix | Delete
});
[13299] Fix | Delete
[13300] Fix | Delete
return Object(external_wp_element_["createElement"])(alignment_matrix_control_icon_styles_Root, Object(esm_extends["a" /* default */])({}, props, {
[13301] Fix | Delete
className: classes,
[13302] Fix | Delete
disablePointerEvents: disablePointerEvents,
[13303] Fix | Delete
role: "presentation",
[13304] Fix | Delete
size: size,
[13305] Fix | Delete
style: styles
[13306] Fix | Delete
}), ALIGNMENTS.map(function (align, index) {
[13307] Fix | Delete
var isActive = alignIndex === index;
[13308] Fix | Delete
return Object(external_wp_element_["createElement"])(alignment_matrix_control_icon_styles_Cell, {
[13309] Fix | Delete
key: align
[13310] Fix | Delete
}, Object(external_wp_element_["createElement"])(alignment_matrix_control_icon_styles_Point, {
[13311] Fix | Delete
isActive: isActive
[13312] Fix | Delete
}));
[13313] Fix | Delete
}));
[13314] Fix | Delete
}
[13315] Fix | Delete
[13316] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/alignment-matrix-control/index.js
[13317] Fix | Delete
[13318] Fix | Delete
[13319] Fix | Delete
[13320] Fix | Delete
[13321] Fix | Delete
[13322] Fix | Delete
/**
[13323] Fix | Delete
* External dependencies
[13324] Fix | Delete
*/
[13325] Fix | Delete
[13326] Fix | Delete
[13327] Fix | Delete
/**
[13328] Fix | Delete
* WordPress dependencies
[13329] Fix | Delete
*/
[13330] Fix | Delete
[13331] Fix | Delete
[13332] Fix | Delete
[13333] Fix | Delete
[13334] Fix | Delete
/**
[13335] Fix | Delete
* Internal dependencies
[13336] Fix | Delete
*/
[13337] Fix | Delete
[13338] Fix | Delete
[13339] Fix | Delete
[13340] Fix | Delete
[13341] Fix | Delete
[13342] Fix | Delete
[13343] Fix | Delete
[13344] Fix | Delete
function useBaseId(id) {
[13345] Fix | Delete
var instanceId = Object(external_wp_compose_["useInstanceId"])(AlignmentMatrixControl, 'alignment-matrix-control');
[13346] Fix | Delete
return id || instanceId;
[13347] Fix | Delete
}
[13348] Fix | Delete
[13349] Fix | Delete
function AlignmentMatrixControl(_ref) {
[13350] Fix | Delete
var className = _ref.className,
[13351] Fix | Delete
id = _ref.id,
[13352] Fix | Delete
_ref$label = _ref.label,
[13353] Fix | Delete
label = _ref$label === void 0 ? Object(external_wp_i18n_["__"])('Alignment Matrix Control') : _ref$label,
[13354] Fix | Delete
_ref$defaultValue = _ref.defaultValue,
[13355] Fix | Delete
defaultValue = _ref$defaultValue === void 0 ? 'center center' : _ref$defaultValue,
[13356] Fix | Delete
value = _ref.value,
[13357] Fix | Delete
_ref$onChange = _ref.onChange,
[13358] Fix | Delete
onChange = _ref$onChange === void 0 ? external_lodash_["noop"] : _ref$onChange,
[13359] Fix | Delete
_ref$width = _ref.width,
[13360] Fix | Delete
width = _ref$width === void 0 ? 92 : _ref$width,
[13361] Fix | Delete
props = Object(objectWithoutProperties["a" /* default */])(_ref, ["className", "id", "label", "defaultValue", "value", "onChange", "width"]);
[13362] Fix | Delete
[13363] Fix | Delete
var _useState = Object(external_wp_element_["useState"])(value !== null && value !== void 0 ? value : defaultValue),
[13364] Fix | Delete
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 1),
[13365] Fix | Delete
immutableDefaultValue = _useState2[0];
[13366] Fix | Delete
[13367] Fix | Delete
var baseId = useBaseId(id);
[13368] Fix | Delete
var initialCurrentId = utils_getItemId(baseId, immutableDefaultValue);
[13369] Fix | Delete
var composite = useCompositeState({
[13370] Fix | Delete
baseId: baseId,
[13371] Fix | Delete
currentId: initialCurrentId,
[13372] Fix | Delete
rtl: Object(external_wp_i18n_["isRTL"])()
[13373] Fix | Delete
});
[13374] Fix | Delete
[13375] Fix | Delete
var handleOnChange = function handleOnChange(nextValue) {
[13376] Fix | Delete
onChange(nextValue);
[13377] Fix | Delete
};
[13378] Fix | Delete
[13379] Fix | Delete
Object(external_wp_element_["useEffect"])(function () {
[13380] Fix | Delete
if (typeof value !== 'undefined') {
[13381] Fix | Delete
composite.setCurrentId(utils_getItemId(baseId, value));
[13382] Fix | Delete
}
[13383] Fix | Delete
}, [value, composite.setCurrentId]);
[13384] Fix | Delete
var classes = classnames_default()('component-alignment-matrix-control', className);
[13385] Fix | Delete
return Object(external_wp_element_["createElement"])(Composite, Object(esm_extends["a" /* default */])({}, props, composite, {
[13386] Fix | Delete
"aria-label": label,
[13387] Fix | Delete
as: Root,
[13388] Fix | Delete
className: classes,
[13389] Fix | Delete
role: "grid",
[13390] Fix | Delete
width: width
[13391] Fix | Delete
}), GRID.map(function (cells, index) {
[13392] Fix | Delete
return Object(external_wp_element_["createElement"])(CompositeGroup, Object(esm_extends["a" /* default */])({}, composite, {
[13393] Fix | Delete
as: Row,
[13394] Fix | Delete
role: "row",
[13395] Fix | Delete
key: index
[13396] Fix | Delete
}), cells.map(function (cell) {
[13397] Fix | Delete
var cellId = utils_getItemId(baseId, cell);
[13398] Fix | Delete
var isActive = composite.currentId === cellId;
[13399] Fix | Delete
return Object(external_wp_element_["createElement"])(cell_Cell, Object(esm_extends["a" /* default */])({}, composite, {
[13400] Fix | Delete
id: cellId,
[13401] Fix | Delete
isActive: isActive,
[13402] Fix | Delete
key: cell,
[13403] Fix | Delete
value: cell,
[13404] Fix | Delete
onFocus: function onFocus() {
[13405] Fix | Delete
return handleOnChange(cell);
[13406] Fix | Delete
},
[13407] Fix | Delete
tabIndex: isActive ? 0 : -1
[13408] Fix | Delete
}));
[13409] Fix | Delete
}));
[13410] Fix | Delete
}));
[13411] Fix | Delete
}
[13412] Fix | Delete
AlignmentMatrixControl.Icon = AlignmentMatrixControlIcon;
[13413] Fix | Delete
[13414] Fix | Delete
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/animate/index.js
[13415] Fix | Delete
var animate = __webpack_require__("L8Kx");
[13416] Fix | Delete
[13417] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/font-values.js
[13418] Fix | Delete
/* harmony default export */ var font_values = ({
[13419] Fix | Delete
'default.fontFamily': "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif",
[13420] Fix | Delete
'default.fontSize': '13px',
[13421] Fix | Delete
'helpText.fontSize': '12px',
[13422] Fix | Delete
mobileTextMinFontSize: '16px'
[13423] Fix | Delete
});
[13424] Fix | Delete
[13425] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/font.js
[13426] Fix | Delete
/**
[13427] Fix | Delete
* External dependencies
[13428] Fix | Delete
*/
[13429] Fix | Delete
[13430] Fix | Delete
/**
[13431] Fix | Delete
* Internal dependencies
[13432] Fix | Delete
*/
[13433] Fix | Delete
[13434] Fix | Delete
[13435] Fix | Delete
/**
[13436] Fix | Delete
*
[13437] Fix | Delete
* @param {keyof FONT} value Path of value from `FONT`
[13438] Fix | Delete
* @return {string} Font rule value
[13439] Fix | Delete
*/
[13440] Fix | Delete
[13441] Fix | Delete
function font(value) {
[13442] Fix | Delete
return Object(external_lodash_["get"])(font_values, value, '');
[13443] Fix | Delete
}
[13444] Fix | Delete
[13445] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/space.js
[13446] Fix | Delete
var SPACE_GRID_BASE = 8;
[13447] Fix | Delete
/**
[13448] Fix | Delete
* Creates a spacing CSS value (px) based on grid system values.
[13449] Fix | Delete
*
[13450] Fix | Delete
* @param {number} [value=1] Multiplier against the grid base value (8)
[13451] Fix | Delete
* @return {string} The spacing value (px).
[13452] Fix | Delete
*/
[13453] Fix | Delete
[13454] Fix | Delete
function space() {
[13455] Fix | Delete
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
[13456] Fix | Delete
if (isNaN(value)) return "".concat(SPACE_GRID_BASE, "px");
[13457] Fix | Delete
return "".concat(SPACE_GRID_BASE * value, "px");
[13458] Fix | Delete
}
[13459] Fix | Delete
[13460] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/base-control/styles/base-control-styles.js
[13461] Fix | Delete
[13462] Fix | Delete
[13463] Fix | Delete
/**
[13464] Fix | Delete
* Internal dependencies
[13465] Fix | Delete
*/
[13466] Fix | Delete
[13467] Fix | Delete
var base_control_styles_Wrapper = styled_base_browser_esm("div", {
[13468] Fix | Delete
target: "e1puf3u0",
[13469] Fix | Delete
label: "Wrapper"
[13470] Fix | Delete
})("font-family:", font('default.fontFamily'), ";font-size:", font('default.fontSize'), ";" + ( true ? "" : undefined));
[13471] Fix | Delete
var StyledField = styled_base_browser_esm("div", {
[13472] Fix | Delete
target: "e1puf3u1",
[13473] Fix | Delete
label: "StyledField"
[13474] Fix | Delete
})("margin-bottom:", space(1), ";.components-panel__row &{margin-bottom:inherit;}" + ( true ? "" : undefined));
[13475] Fix | Delete
var StyledLabel = styled_base_browser_esm("label", {
[13476] Fix | Delete
target: "e1puf3u2",
[13477] Fix | Delete
label: "StyledLabel"
[13478] Fix | Delete
})("display:inline-block;margin-bottom:", space(1), ";" + ( true ? "" : undefined));
[13479] Fix | Delete
var StyledHelp = styled_base_browser_esm("p", {
[13480] Fix | Delete
target: "e1puf3u3",
[13481] Fix | Delete
label: "StyledHelp"
[13482] Fix | Delete
})("margin-top:-", space(1), ";font-size:", font('helpText.fontSize'), ";font-style:normal;color:", colors_color('mediumGray.text'), ";" + ( true ? "" : undefined));
[13483] Fix | Delete
[13484] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/base-control/index.js
[13485] Fix | Delete
[13486] Fix | Delete
[13487] Fix | Delete
/**
[13488] Fix | Delete
* External dependencies
[13489] Fix | Delete
*/
[13490] Fix | Delete
[13491] Fix | Delete
/**
[13492] Fix | Delete
* Internal dependencies
[13493] Fix | Delete
*/
[13494] Fix | Delete
[13495] Fix | Delete
[13496] Fix | Delete
[13497] Fix | Delete
/**
[13498] Fix | Delete
* @typedef Props
[13499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function