Edit File by line
/home/barbar84/www/wp-inclu.../js/dist
File: components.js
/**
[30500] Fix | Delete
* WordPress dependencies
[30501] Fix | Delete
*/
[30502] Fix | Delete
[30503] Fix | Delete
var menu_menu = Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], {
[30504] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[30505] Fix | Delete
viewBox: "0 0 24 24"
[30506] Fix | Delete
}, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], {
[30507] Fix | Delete
d: "M5 5.5V7h14V5.5H5zM5 13h14v-1.5H5V13zm0 6h14v-1.5H5V19z"
[30508] Fix | Delete
}));
[30509] Fix | Delete
/* harmony default export */ var library_menu = (menu_menu);
[30510] Fix | Delete
[30511] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigable-container/container.js
[30512] Fix | Delete
[30513] Fix | Delete
[30514] Fix | Delete
[30515] Fix | Delete
[30516] Fix | Delete
[30517] Fix | Delete
[30518] Fix | Delete
[30519] Fix | Delete
[30520] Fix | Delete
[30521] Fix | Delete
[30522] Fix | Delete
function container_createSuper(Derived) { var hasNativeReflectConstruct = container_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; }
[30523] Fix | Delete
[30524] Fix | Delete
function container_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
[30525] Fix | Delete
[30526] Fix | Delete
/**
[30527] Fix | Delete
* External dependencies
[30528] Fix | Delete
*/
[30529] Fix | Delete
[30530] Fix | Delete
/**
[30531] Fix | Delete
* WordPress dependencies
[30532] Fix | Delete
*/
[30533] Fix | Delete
[30534] Fix | Delete
[30535] Fix | Delete
[30536] Fix | Delete
var MENU_ITEM_ROLES = ['menuitem', 'menuitemradio', 'menuitemcheckbox'];
[30537] Fix | Delete
[30538] Fix | Delete
function cycleValue(value, total, offset) {
[30539] Fix | Delete
var nextValue = value + offset;
[30540] Fix | Delete
[30541] Fix | Delete
if (nextValue < 0) {
[30542] Fix | Delete
return total + nextValue;
[30543] Fix | Delete
} else if (nextValue >= total) {
[30544] Fix | Delete
return nextValue - total;
[30545] Fix | Delete
}
[30546] Fix | Delete
[30547] Fix | Delete
return nextValue;
[30548] Fix | Delete
}
[30549] Fix | Delete
[30550] Fix | Delete
var container_NavigableContainer = /*#__PURE__*/function (_Component) {
[30551] Fix | Delete
Object(inherits["a" /* default */])(NavigableContainer, _Component);
[30552] Fix | Delete
[30553] Fix | Delete
var _super = container_createSuper(NavigableContainer);
[30554] Fix | Delete
[30555] Fix | Delete
function NavigableContainer() {
[30556] Fix | Delete
var _this;
[30557] Fix | Delete
[30558] Fix | Delete
Object(classCallCheck["a" /* default */])(this, NavigableContainer);
[30559] Fix | Delete
[30560] Fix | Delete
_this = _super.apply(this, arguments);
[30561] Fix | Delete
_this.onKeyDown = _this.onKeyDown.bind(Object(assertThisInitialized["a" /* default */])(_this));
[30562] Fix | Delete
_this.bindContainer = _this.bindContainer.bind(Object(assertThisInitialized["a" /* default */])(_this));
[30563] Fix | Delete
_this.getFocusableContext = _this.getFocusableContext.bind(Object(assertThisInitialized["a" /* default */])(_this));
[30564] Fix | Delete
_this.getFocusableIndex = _this.getFocusableIndex.bind(Object(assertThisInitialized["a" /* default */])(_this));
[30565] Fix | Delete
return _this;
[30566] Fix | Delete
}
[30567] Fix | Delete
[30568] Fix | Delete
Object(createClass["a" /* default */])(NavigableContainer, [{
[30569] Fix | Delete
key: "componentDidMount",
[30570] Fix | Delete
value: function componentDidMount() {
[30571] Fix | Delete
// We use DOM event listeners instead of React event listeners
[30572] Fix | Delete
// because we want to catch events from the underlying DOM tree
[30573] Fix | Delete
// The React Tree can be different from the DOM tree when using
[30574] Fix | Delete
// portals. Block Toolbars for instance are rendered in a separate
[30575] Fix | Delete
// React Trees.
[30576] Fix | Delete
this.container.addEventListener('keydown', this.onKeyDown);
[30577] Fix | Delete
this.container.addEventListener('focus', this.onFocus);
[30578] Fix | Delete
}
[30579] Fix | Delete
}, {
[30580] Fix | Delete
key: "componentWillUnmount",
[30581] Fix | Delete
value: function componentWillUnmount() {
[30582] Fix | Delete
this.container.removeEventListener('keydown', this.onKeyDown);
[30583] Fix | Delete
this.container.removeEventListener('focus', this.onFocus);
[30584] Fix | Delete
}
[30585] Fix | Delete
}, {
[30586] Fix | Delete
key: "bindContainer",
[30587] Fix | Delete
value: function bindContainer(ref) {
[30588] Fix | Delete
var forwardedRef = this.props.forwardedRef;
[30589] Fix | Delete
this.container = ref;
[30590] Fix | Delete
[30591] Fix | Delete
if (Object(external_lodash_["isFunction"])(forwardedRef)) {
[30592] Fix | Delete
forwardedRef(ref);
[30593] Fix | Delete
} else if (forwardedRef && 'current' in forwardedRef) {
[30594] Fix | Delete
forwardedRef.current = ref;
[30595] Fix | Delete
}
[30596] Fix | Delete
}
[30597] Fix | Delete
}, {
[30598] Fix | Delete
key: "getFocusableContext",
[30599] Fix | Delete
value: function getFocusableContext(target) {
[30600] Fix | Delete
var onlyBrowserTabstops = this.props.onlyBrowserTabstops;
[30601] Fix | Delete
var finder = onlyBrowserTabstops ? external_wp_dom_["focus"].tabbable : external_wp_dom_["focus"].focusable;
[30602] Fix | Delete
var focusables = finder.find(this.container);
[30603] Fix | Delete
var index = this.getFocusableIndex(focusables, target);
[30604] Fix | Delete
[30605] Fix | Delete
if (index > -1 && target) {
[30606] Fix | Delete
return {
[30607] Fix | Delete
index: index,
[30608] Fix | Delete
target: target,
[30609] Fix | Delete
focusables: focusables
[30610] Fix | Delete
};
[30611] Fix | Delete
}
[30612] Fix | Delete
[30613] Fix | Delete
return null;
[30614] Fix | Delete
}
[30615] Fix | Delete
}, {
[30616] Fix | Delete
key: "getFocusableIndex",
[30617] Fix | Delete
value: function getFocusableIndex(focusables, target) {
[30618] Fix | Delete
var directIndex = focusables.indexOf(target);
[30619] Fix | Delete
[30620] Fix | Delete
if (directIndex !== -1) {
[30621] Fix | Delete
return directIndex;
[30622] Fix | Delete
}
[30623] Fix | Delete
}
[30624] Fix | Delete
}, {
[30625] Fix | Delete
key: "onKeyDown",
[30626] Fix | Delete
value: function onKeyDown(event) {
[30627] Fix | Delete
if (this.props.onKeyDown) {
[30628] Fix | Delete
this.props.onKeyDown(event);
[30629] Fix | Delete
}
[30630] Fix | Delete
[30631] Fix | Delete
var getFocusableContext = this.getFocusableContext;
[30632] Fix | Delete
var _this$props = this.props,
[30633] Fix | Delete
_this$props$cycle = _this$props.cycle,
[30634] Fix | Delete
cycle = _this$props$cycle === void 0 ? true : _this$props$cycle,
[30635] Fix | Delete
eventToOffset = _this$props.eventToOffset,
[30636] Fix | Delete
_this$props$onNavigat = _this$props.onNavigate,
[30637] Fix | Delete
onNavigate = _this$props$onNavigat === void 0 ? external_lodash_["noop"] : _this$props$onNavigat,
[30638] Fix | Delete
stopNavigationEvents = _this$props.stopNavigationEvents;
[30639] Fix | Delete
var offset = eventToOffset(event); // eventToOffset returns undefined if the event is not handled by the component
[30640] Fix | Delete
[30641] Fix | Delete
if (offset !== undefined && stopNavigationEvents) {
[30642] Fix | Delete
// Prevents arrow key handlers bound to the document directly interfering
[30643] Fix | Delete
event.stopImmediatePropagation(); // When navigating a collection of items, prevent scroll containers
[30644] Fix | Delete
// from scrolling. The preventDefault also prevents Voiceover from
[30645] Fix | Delete
// 'handling' the event, as voiceover will try to use arrow keys
[30646] Fix | Delete
// for highlighting text.
[30647] Fix | Delete
[30648] Fix | Delete
var targetRole = event.target.getAttribute('role');
[30649] Fix | Delete
[30650] Fix | Delete
if (MENU_ITEM_ROLES.includes(targetRole)) {
[30651] Fix | Delete
event.preventDefault();
[30652] Fix | Delete
}
[30653] Fix | Delete
}
[30654] Fix | Delete
[30655] Fix | Delete
if (!offset) {
[30656] Fix | Delete
return;
[30657] Fix | Delete
}
[30658] Fix | Delete
[30659] Fix | Delete
var context = getFocusableContext(event.target.ownerDocument.activeElement);
[30660] Fix | Delete
[30661] Fix | Delete
if (!context) {
[30662] Fix | Delete
return;
[30663] Fix | Delete
}
[30664] Fix | Delete
[30665] Fix | Delete
var index = context.index,
[30666] Fix | Delete
focusables = context.focusables;
[30667] Fix | Delete
var nextIndex = cycle ? cycleValue(index, focusables.length, offset) : index + offset;
[30668] Fix | Delete
[30669] Fix | Delete
if (nextIndex >= 0 && nextIndex < focusables.length) {
[30670] Fix | Delete
focusables[nextIndex].focus();
[30671] Fix | Delete
onNavigate(nextIndex, focusables[nextIndex]);
[30672] Fix | Delete
}
[30673] Fix | Delete
}
[30674] Fix | Delete
}, {
[30675] Fix | Delete
key: "render",
[30676] Fix | Delete
value: function render() {
[30677] Fix | Delete
var _this$props2 = this.props,
[30678] Fix | Delete
children = _this$props2.children,
[30679] Fix | Delete
props = Object(objectWithoutProperties["a" /* default */])(_this$props2, ["children"]);
[30680] Fix | Delete
[30681] Fix | Delete
return Object(external_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({
[30682] Fix | Delete
ref: this.bindContainer
[30683] Fix | Delete
}, Object(external_lodash_["omit"])(props, ['stopNavigationEvents', 'eventToOffset', 'onNavigate', 'onKeyDown', 'cycle', 'onlyBrowserTabstops', 'forwardedRef'])), children);
[30684] Fix | Delete
}
[30685] Fix | Delete
}]);
[30686] Fix | Delete
[30687] Fix | Delete
return NavigableContainer;
[30688] Fix | Delete
}(external_wp_element_["Component"]);
[30689] Fix | Delete
[30690] Fix | Delete
var container_forwardedNavigableContainer = function forwardedNavigableContainer(props, ref) {
[30691] Fix | Delete
return Object(external_wp_element_["createElement"])(container_NavigableContainer, Object(esm_extends["a" /* default */])({}, props, {
[30692] Fix | Delete
forwardedRef: ref
[30693] Fix | Delete
}));
[30694] Fix | Delete
};
[30695] Fix | Delete
[30696] Fix | Delete
container_forwardedNavigableContainer.displayName = 'NavigableContainer';
[30697] Fix | Delete
/* harmony default export */ var navigable_container_container = (Object(external_wp_element_["forwardRef"])(container_forwardedNavigableContainer));
[30698] Fix | Delete
[30699] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigable-container/menu.js
[30700] Fix | Delete
[30701] Fix | Delete
[30702] Fix | Delete
[30703] Fix | Delete
[30704] Fix | Delete
/**
[30705] Fix | Delete
* External dependencies
[30706] Fix | Delete
*/
[30707] Fix | Delete
[30708] Fix | Delete
/**
[30709] Fix | Delete
* WordPress dependencies
[30710] Fix | Delete
*/
[30711] Fix | Delete
[30712] Fix | Delete
[30713] Fix | Delete
[30714] Fix | Delete
/**
[30715] Fix | Delete
* Internal dependencies
[30716] Fix | Delete
*/
[30717] Fix | Delete
[30718] Fix | Delete
[30719] Fix | Delete
function NavigableMenu(_ref, ref) {
[30720] Fix | Delete
var _ref$role = _ref.role,
[30721] Fix | Delete
role = _ref$role === void 0 ? 'menu' : _ref$role,
[30722] Fix | Delete
_ref$orientation = _ref.orientation,
[30723] Fix | Delete
orientation = _ref$orientation === void 0 ? 'vertical' : _ref$orientation,
[30724] Fix | Delete
rest = Object(objectWithoutProperties["a" /* default */])(_ref, ["role", "orientation"]);
[30725] Fix | Delete
[30726] Fix | Delete
var eventToOffset = function eventToOffset(evt) {
[30727] Fix | Delete
var keyCode = evt.keyCode;
[30728] Fix | Delete
var next = [external_wp_keycodes_["DOWN"]];
[30729] Fix | Delete
var previous = [external_wp_keycodes_["UP"]];
[30730] Fix | Delete
[30731] Fix | Delete
if (orientation === 'horizontal') {
[30732] Fix | Delete
next = [external_wp_keycodes_["RIGHT"]];
[30733] Fix | Delete
previous = [external_wp_keycodes_["LEFT"]];
[30734] Fix | Delete
}
[30735] Fix | Delete
[30736] Fix | Delete
if (orientation === 'both') {
[30737] Fix | Delete
next = [external_wp_keycodes_["RIGHT"], external_wp_keycodes_["DOWN"]];
[30738] Fix | Delete
previous = [external_wp_keycodes_["LEFT"], external_wp_keycodes_["UP"]];
[30739] Fix | Delete
}
[30740] Fix | Delete
[30741] Fix | Delete
if (Object(external_lodash_["includes"])(next, keyCode)) {
[30742] Fix | Delete
return 1;
[30743] Fix | Delete
} else if (Object(external_lodash_["includes"])(previous, keyCode)) {
[30744] Fix | Delete
return -1;
[30745] Fix | Delete
} else if (Object(external_lodash_["includes"])([external_wp_keycodes_["DOWN"], external_wp_keycodes_["UP"], external_wp_keycodes_["LEFT"], external_wp_keycodes_["RIGHT"]], keyCode)) {
[30746] Fix | Delete
// Key press should be handled, e.g. have event propagation and
[30747] Fix | Delete
// default behavior handled by NavigableContainer but not result
[30748] Fix | Delete
// in an offset.
[30749] Fix | Delete
return 0;
[30750] Fix | Delete
}
[30751] Fix | Delete
};
[30752] Fix | Delete
[30753] Fix | Delete
return Object(external_wp_element_["createElement"])(navigable_container_container, Object(esm_extends["a" /* default */])({
[30754] Fix | Delete
ref: ref,
[30755] Fix | Delete
stopNavigationEvents: true,
[30756] Fix | Delete
onlyBrowserTabstops: false,
[30757] Fix | Delete
role: role,
[30758] Fix | Delete
"aria-orientation": role === 'presentation' ? null : orientation,
[30759] Fix | Delete
eventToOffset: eventToOffset
[30760] Fix | Delete
}, rest));
[30761] Fix | Delete
}
[30762] Fix | Delete
/* harmony default export */ var navigable_container_menu = (Object(external_wp_element_["forwardRef"])(NavigableMenu));
[30763] Fix | Delete
[30764] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/dropdown-menu/index.js
[30765] Fix | Delete
[30766] Fix | Delete
[30767] Fix | Delete
[30768] Fix | Delete
[30769] Fix | Delete
function dropdown_menu_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; }
[30770] Fix | Delete
[30771] Fix | Delete
function dropdown_menu_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { dropdown_menu_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 { dropdown_menu_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
[30772] Fix | Delete
[30773] Fix | Delete
/**
[30774] Fix | Delete
* External dependencies
[30775] Fix | Delete
*/
[30776] Fix | Delete
[30777] Fix | Delete
[30778] Fix | Delete
/**
[30779] Fix | Delete
* WordPress dependencies
[30780] Fix | Delete
*/
[30781] Fix | Delete
[30782] Fix | Delete
[30783] Fix | Delete
[30784] Fix | Delete
[30785] Fix | Delete
/**
[30786] Fix | Delete
* Internal dependencies
[30787] Fix | Delete
*/
[30788] Fix | Delete
[30789] Fix | Delete
[30790] Fix | Delete
[30791] Fix | Delete
[30792] Fix | Delete
[30793] Fix | Delete
function mergeProps() {
[30794] Fix | Delete
var defaultProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
[30795] Fix | Delete
var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
[30796] Fix | Delete
[30797] Fix | Delete
var mergedProps = dropdown_menu_objectSpread(dropdown_menu_objectSpread({}, defaultProps), props);
[30798] Fix | Delete
[30799] Fix | Delete
if (props.className && defaultProps.className) {
[30800] Fix | Delete
mergedProps.className = classnames_default()(props.className, defaultProps.className);
[30801] Fix | Delete
}
[30802] Fix | Delete
[30803] Fix | Delete
return mergedProps;
[30804] Fix | Delete
}
[30805] Fix | Delete
[30806] Fix | Delete
function DropdownMenu(_ref) {
[30807] Fix | Delete
var children = _ref.children,
[30808] Fix | Delete
className = _ref.className,
[30809] Fix | Delete
controls = _ref.controls,
[30810] Fix | Delete
_ref$icon = _ref.icon,
[30811] Fix | Delete
icon = _ref$icon === void 0 ? library_menu : _ref$icon,
[30812] Fix | Delete
label = _ref.label,
[30813] Fix | Delete
popoverProps = _ref.popoverProps,
[30814] Fix | Delete
toggleProps = _ref.toggleProps,
[30815] Fix | Delete
menuProps = _ref.menuProps,
[30816] Fix | Delete
_ref$disableOpenOnArr = _ref.disableOpenOnArrowDown,
[30817] Fix | Delete
disableOpenOnArrowDown = _ref$disableOpenOnArr === void 0 ? false : _ref$disableOpenOnArr,
[30818] Fix | Delete
text = _ref.text,
[30819] Fix | Delete
menuLabel = _ref.menuLabel,
[30820] Fix | Delete
position = _ref.position,
[30821] Fix | Delete
noIcons = _ref.noIcons;
[30822] Fix | Delete
[30823] Fix | Delete
if (menuLabel) {
[30824] Fix | Delete
external_wp_deprecated_default()('`menuLabel` prop in `DropdownComponent`', {
[30825] Fix | Delete
alternative: '`menuProps` object and its `aria-label` property',
[30826] Fix | Delete
plugin: 'Gutenberg'
[30827] Fix | Delete
});
[30828] Fix | Delete
}
[30829] Fix | Delete
[30830] Fix | Delete
if (position) {
[30831] Fix | Delete
external_wp_deprecated_default()('`position` prop in `DropdownComponent`', {
[30832] Fix | Delete
alternative: '`popoverProps` object and its `position` property',
[30833] Fix | Delete
plugin: 'Gutenberg'
[30834] Fix | Delete
});
[30835] Fix | Delete
}
[30836] Fix | Delete
[30837] Fix | Delete
if (Object(external_lodash_["isEmpty"])(controls) && !Object(external_lodash_["isFunction"])(children)) {
[30838] Fix | Delete
return null;
[30839] Fix | Delete
} // Normalize controls to nested array of objects (sets of controls)
[30840] Fix | Delete
[30841] Fix | Delete
[30842] Fix | Delete
var controlSets;
[30843] Fix | Delete
[30844] Fix | Delete
if (!Object(external_lodash_["isEmpty"])(controls)) {
[30845] Fix | Delete
controlSets = controls;
[30846] Fix | Delete
[30847] Fix | Delete
if (!Array.isArray(controlSets[0])) {
[30848] Fix | Delete
controlSets = [controlSets];
[30849] Fix | Delete
}
[30850] Fix | Delete
}
[30851] Fix | Delete
[30852] Fix | Delete
var mergedPopoverProps = mergeProps({
[30853] Fix | Delete
className: 'components-dropdown-menu__popover',
[30854] Fix | Delete
position: position
[30855] Fix | Delete
}, popoverProps);
[30856] Fix | Delete
return Object(external_wp_element_["createElement"])(Dropdown, {
[30857] Fix | Delete
className: classnames_default()('components-dropdown-menu', className),
[30858] Fix | Delete
popoverProps: mergedPopoverProps,
[30859] Fix | Delete
renderToggle: function renderToggle(_ref2) {
[30860] Fix | Delete
var _toggleProps$showTool;
[30861] Fix | Delete
[30862] Fix | Delete
var isOpen = _ref2.isOpen,
[30863] Fix | Delete
onToggle = _ref2.onToggle;
[30864] Fix | Delete
[30865] Fix | Delete
var openOnArrowDown = function openOnArrowDown(event) {
[30866] Fix | Delete
if (disableOpenOnArrowDown) {
[30867] Fix | Delete
return;
[30868] Fix | Delete
}
[30869] Fix | Delete
[30870] Fix | Delete
if (!isOpen && event.keyCode === external_wp_keycodes_["DOWN"]) {
[30871] Fix | Delete
event.preventDefault();
[30872] Fix | Delete
event.stopPropagation();
[30873] Fix | Delete
onToggle();
[30874] Fix | Delete
}
[30875] Fix | Delete
};
[30876] Fix | Delete
[30877] Fix | Delete
var mergedToggleProps = mergeProps({
[30878] Fix | Delete
className: classnames_default()('components-dropdown-menu__toggle', {
[30879] Fix | Delete
'is-opened': isOpen
[30880] Fix | Delete
})
[30881] Fix | Delete
}, toggleProps);
[30882] Fix | Delete
return Object(external_wp_element_["createElement"])(build_module_button["a" /* default */], Object(esm_extends["a" /* default */])({}, mergedToggleProps, {
[30883] Fix | Delete
icon: icon,
[30884] Fix | Delete
onClick: function onClick(event) {
[30885] Fix | Delete
onToggle(event);
[30886] Fix | Delete
[30887] Fix | Delete
if (mergedToggleProps.onClick) {
[30888] Fix | Delete
mergedToggleProps.onClick(event);
[30889] Fix | Delete
}
[30890] Fix | Delete
},
[30891] Fix | Delete
onKeyDown: function onKeyDown(event) {
[30892] Fix | Delete
openOnArrowDown(event);
[30893] Fix | Delete
[30894] Fix | Delete
if (mergedToggleProps.onKeyDown) {
[30895] Fix | Delete
mergedToggleProps.onKeyDown(event);
[30896] Fix | Delete
}
[30897] Fix | Delete
},
[30898] Fix | Delete
"aria-haspopup": "true",
[30899] Fix | Delete
"aria-expanded": isOpen,
[30900] Fix | Delete
label: label,
[30901] Fix | Delete
text: text,
[30902] Fix | Delete
showTooltip: (_toggleProps$showTool = toggleProps === null || toggleProps === void 0 ? void 0 : toggleProps.showTooltip) !== null && _toggleProps$showTool !== void 0 ? _toggleProps$showTool : true
[30903] Fix | Delete
}), mergedToggleProps.children);
[30904] Fix | Delete
},
[30905] Fix | Delete
renderContent: function renderContent(props) {
[30906] Fix | Delete
var mergedMenuProps = mergeProps({
[30907] Fix | Delete
'aria-label': menuLabel || label,
[30908] Fix | Delete
className: classnames_default()('components-dropdown-menu__menu', {
[30909] Fix | Delete
'no-icons': noIcons
[30910] Fix | Delete
})
[30911] Fix | Delete
}, menuProps);
[30912] Fix | Delete
return Object(external_wp_element_["createElement"])(navigable_container_menu, Object(esm_extends["a" /* default */])({}, mergedMenuProps, {
[30913] Fix | Delete
role: "menu"
[30914] Fix | Delete
}), Object(external_lodash_["isFunction"])(children) ? children(props) : null, Object(external_lodash_["flatMap"])(controlSets, function (controlSet, indexOfSet) {
[30915] Fix | Delete
return controlSet.map(function (control, indexOfControl) {
[30916] Fix | Delete
return Object(external_wp_element_["createElement"])(build_module_button["a" /* default */], {
[30917] Fix | Delete
key: [indexOfSet, indexOfControl].join(),
[30918] Fix | Delete
onClick: function onClick(event) {
[30919] Fix | Delete
event.stopPropagation();
[30920] Fix | Delete
props.onClose();
[30921] Fix | Delete
[30922] Fix | Delete
if (control.onClick) {
[30923] Fix | Delete
control.onClick();
[30924] Fix | Delete
}
[30925] Fix | Delete
},
[30926] Fix | Delete
className: classnames_default()('components-dropdown-menu__menu-item', {
[30927] Fix | Delete
'has-separator': indexOfSet > 0 && indexOfControl === 0,
[30928] Fix | Delete
'is-active': control.isActive
[30929] Fix | Delete
}),
[30930] Fix | Delete
icon: control.icon,
[30931] Fix | Delete
"aria-checked": control.role === 'menuitemcheckbox' || control.role === 'menuitemradio' ? control.isActive : undefined,
[30932] Fix | Delete
role: control.role === 'menuitemcheckbox' || control.role === 'menuitemradio' ? control.role : 'menuitem',
[30933] Fix | Delete
disabled: control.isDisabled
[30934] Fix | Delete
}, control.title);
[30935] Fix | Delete
});
[30936] Fix | Delete
}));
[30937] Fix | Delete
}
[30938] Fix | Delete
});
[30939] Fix | Delete
}
[30940] Fix | Delete
[30941] Fix | Delete
/* harmony default export */ var dropdown_menu = (DropdownMenu);
[30942] Fix | Delete
[30943] Fix | Delete
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/external.js
[30944] Fix | Delete
var external = __webpack_require__("K+tz");
[30945] Fix | Delete
[30946] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/external-link/styles/external-link-styles.js
[30947] Fix | Delete
[30948] Fix | Delete
[30949] Fix | Delete
function external_link_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)."; }
[30950] Fix | Delete
[30951] Fix | Delete
/**
[30952] Fix | Delete
* WordPress dependencies
[30953] Fix | Delete
*/
[30954] Fix | Delete
[30955] Fix | Delete
var StyledIcon = /*#__PURE__*/styled_base_browser_esm(build_module_icon["a" /* default */], {
[30956] Fix | Delete
target: "etxm6pv0",
[30957] Fix | Delete
label: "StyledIcon"
[30958] Fix | Delete
})( true ? {
[30959] Fix | Delete
name: "i8uvf3",
[30960] Fix | Delete
styles: "width:1.4em;height:1.4em;margin:-0.2em 0.1em 0;vertical-align:middle;fill:currentColor;"
[30961] Fix | Delete
} : undefined);
[30962] Fix | Delete
[30963] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/external-link/index.js
[30964] Fix | Delete
[30965] Fix | Delete
[30966] Fix | Delete
[30967] Fix | Delete
[30968] Fix | Delete
[30969] Fix | Delete
/**
[30970] Fix | Delete
* External dependencies
[30971] Fix | Delete
*/
[30972] Fix | Delete
[30973] Fix | Delete
[30974] Fix | Delete
/**
[30975] Fix | Delete
* WordPress dependencies
[30976] Fix | Delete
*/
[30977] Fix | Delete
[30978] Fix | Delete
[30979] Fix | Delete
[30980] Fix | Delete
[30981] Fix | Delete
/**
[30982] Fix | Delete
* Internal dependencies
[30983] Fix | Delete
*/
[30984] Fix | Delete
[30985] Fix | Delete
[30986] Fix | Delete
[30987] Fix | Delete
function ExternalLink(_ref, ref) {
[30988] Fix | Delete
var href = _ref.href,
[30989] Fix | Delete
children = _ref.children,
[30990] Fix | Delete
className = _ref.className,
[30991] Fix | Delete
_ref$rel = _ref.rel,
[30992] Fix | Delete
rel = _ref$rel === void 0 ? '' : _ref$rel,
[30993] Fix | Delete
additionalProps = Object(objectWithoutProperties["a" /* default */])(_ref, ["href", "children", "className", "rel"]);
[30994] Fix | Delete
[30995] Fix | Delete
rel = Object(external_lodash_["uniq"])(Object(external_lodash_["compact"])([].concat(Object(toConsumableArray["a" /* default */])(rel.split(' ')), ['external', 'noreferrer', 'noopener']))).join(' ');
[30996] Fix | Delete
var classes = classnames_default()('components-external-link', className);
[30997] Fix | Delete
return (
[30998] Fix | Delete
/* eslint-disable react/jsx-no-target-blank */
[30999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function