Edit File by line
/home/barbar84/www/wp-inclu.../js/dist
File: components.js
target: "ejwewyf0",
[36000] Fix | Delete
label: "NavigationUI"
[36001] Fix | Delete
})("width:100%;background-color:", G2.darkGray.primary, ";box-sizing:border-box;color:#f0f0f0;padding:0 ", space(1), ";overflow:hidden;" + ( true ? "" : undefined));
[36002] Fix | Delete
var MenuUI = styled_base_browser_esm("div", {
[36003] Fix | Delete
target: "ejwewyf1",
[36004] Fix | Delete
label: "MenuUI"
[36005] Fix | Delete
})("margin-top:", space(3), ";margin-bottom:", space(3), ";display:flex;flex-direction:column;ul{padding:0;margin:0;list-style:none;}.components-navigation__back-button{margin-bottom:", space(3), ";}.components-navigation__group + .components-navigation__group{margin-top:", space(3), ";}" + ( true ? "" : undefined));
[36006] Fix | Delete
var MenuBackButtonUI = /*#__PURE__*/styled_base_browser_esm(build_module_button["a" /* default */], {
[36007] Fix | Delete
target: "ejwewyf2",
[36008] Fix | Delete
label: "MenuBackButtonUI"
[36009] Fix | Delete
})("&.is-tertiary{color:", G2.lightGray.ui, ";&:hover:not(:disabled ){color:#ddd;box-shadow:none;}&:active:not(:disabled ){background:transparent;color:#ddd;}}" + ( true ? "" : undefined));
[36010] Fix | Delete
var MenuTitleUI = styled_base_browser_esm("div", {
[36011] Fix | Delete
target: "ejwewyf3",
[36012] Fix | Delete
label: "MenuTitleUI"
[36013] Fix | Delete
})( true ? {
[36014] Fix | Delete
name: "16agjqd",
[36015] Fix | Delete
styles: "overflow:hidden;width:100%;"
[36016] Fix | Delete
} : undefined);
[36017] Fix | Delete
var MenuTitleHeadingUI = /*#__PURE__*/styled_base_browser_esm(build_module_text, {
[36018] Fix | Delete
target: "ejwewyf4",
[36019] Fix | Delete
label: "MenuTitleHeadingUI"
[36020] Fix | Delete
})("align-items:center;color:", G2.gray[100], ";display:flex;justify-content:space-between;margin-bottom:", space(1), ";padding:", function () {
[36021] Fix | Delete
return Object(external_wp_i18n_["isRTL"])() ? "".concat(space(0.5), " ").concat(space(2), " ").concat(space(0.5), " ").concat(space(1.5)) : "".concat(space(0.5), " ").concat(space(1.5), " ").concat(space(0.5), " ").concat(space(2));
[36022] Fix | Delete
}, ";" + ( true ? "" : undefined));
[36023] Fix | Delete
var MenuTitleActionsUI = styled_base_browser_esm("span", {
[36024] Fix | Delete
target: "ejwewyf5",
[36025] Fix | Delete
label: "MenuTitleActionsUI"
[36026] Fix | Delete
})("height:", space(3), ";.components-button.is-small{color:", G2.lightGray.ui, ";margin-right:", space(0.5), ";padding:0;&:active:not(:disabled ){background:none;color:", G2.gray[200], ";}&:hover:not(:disabled ){box-shadow:none;color:", G2.gray[200], ";}}" + ( true ? "" : undefined));
[36027] Fix | Delete
var MenuTitleSearchUI = styled_base_browser_esm("div", {
[36028] Fix | Delete
target: "ejwewyf6",
[36029] Fix | Delete
label: "MenuTitleSearchUI"
[36030] Fix | Delete
})("padding:0;position:relative;input{height:", space(4.5), ";margin-bottom:", space(1), ";padding-left:", space(4), ";padding-right:", space(4), ";&::-webkit-search-decoration,&::-webkit-search-cancel-button,&::-webkit-search-results-button,&::-webkit-search-results-decoration{-webkit-appearance:none;}}> svg{left:", space(0.5), ";position:absolute;top:6px;}.components-button.is-small{height:30px;padding:0;position:absolute;right:", space(1), ";top:3px;&:active:not(:disabled ){background:none;}&:hover:not(:disabled ){box-shadow:none;}}" + ( true ? "" : undefined));
[36031] Fix | Delete
var GroupTitleUI = /*#__PURE__*/styled_base_browser_esm(build_module_text, {
[36032] Fix | Delete
target: "ejwewyf7",
[36033] Fix | Delete
label: "GroupTitleUI"
[36034] Fix | Delete
})("margin-top:", space(1), ";padding:", function () {
[36035] Fix | Delete
return Object(external_wp_i18n_["isRTL"])() ? "".concat(space(0.5), " ").concat(space(2), " ").concat(space(0.5), " 0") : "".concat(space(0.5), " 0 ").concat(space(0.5), " ").concat(space(2));
[36036] Fix | Delete
}, ";text-transform:uppercase;color:", G2.gray[100], ";" + ( true ? "" : undefined));
[36037] Fix | Delete
var ItemBaseUI = styled_base_browser_esm("li", {
[36038] Fix | Delete
target: "ejwewyf8",
[36039] Fix | Delete
label: "ItemBaseUI"
[36040] Fix | Delete
})("border-radius:2px;color:", G2.lightGray.ui, ";margin-bottom:0;button,a{width:100%;&:hover,&:focus:not( [aria-disabled='true'] ):active,&:active:not( [aria-disabled='true'] ):active{color:#ddd;}}&.is-active{background-color:", UI.theme, ";color:", UI.textDark, ";button,a{color:", UI.textDark, ";}}svg path{color:", G2.lightGray.ui, ";}" + ( true ? "" : undefined));
[36041] Fix | Delete
var ItemUI = styled_base_browser_esm("div", {
[36042] Fix | Delete
target: "ejwewyf9",
[36043] Fix | Delete
label: "ItemUI"
[36044] Fix | Delete
})("display:flex;align-items:center;height:auto;min-height:32px;margin:0;padding:", space(0.75), " ", space(2), ";font-weight:400;line-height:20px;width:100%;color:", G2.lightGray.ui, ";" + ( true ? "" : undefined));
[36045] Fix | Delete
var ItemBadgeUI = styled_base_browser_esm("span", {
[36046] Fix | Delete
target: "ejwewyf10",
[36047] Fix | Delete
label: "ItemBadgeUI"
[36048] Fix | Delete
})("margin-left:", function () {
[36049] Fix | Delete
return Object(external_wp_i18n_["isRTL"])() ? '0' : space(1);
[36050] Fix | Delete
}, ";margin-right:", function () {
[36051] Fix | Delete
return Object(external_wp_i18n_["isRTL"])() ? space(1) : '0';
[36052] Fix | Delete
}, ";display:inline-flex;padding:", space(0.5), " ", space(1.5), ";border-radius:2px;animation:fade-in 250ms ease-out;@keyframes fade-in{from{opacity:0;}to{opacity:1;}}", reduceMotion('animation'), ";" + ( true ? "" : undefined));
[36053] Fix | Delete
var ItemTitleUI = /*#__PURE__*/styled_base_browser_esm(build_module_text, {
[36054] Fix | Delete
target: "ejwewyf11",
[36055] Fix | Delete
label: "ItemTitleUI"
[36056] Fix | Delete
})(function () {
[36057] Fix | Delete
return Object(external_wp_i18n_["isRTL"])() ? 'margin-left: auto;' : 'margin-right: auto;';
[36058] Fix | Delete
}, " font-size:13px;" + ( true ? "" : undefined));
[36059] Fix | Delete
[36060] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/use-navigation-tree-nodes.js
[36061] Fix | Delete
[36062] Fix | Delete
[36063] Fix | Delete
[36064] Fix | Delete
function use_navigation_tree_nodes_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; }
[36065] Fix | Delete
[36066] Fix | Delete
function use_navigation_tree_nodes_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { use_navigation_tree_nodes_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 { use_navigation_tree_nodes_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
[36067] Fix | Delete
[36068] Fix | Delete
/**
[36069] Fix | Delete
* External dependencies
[36070] Fix | Delete
*/
[36071] Fix | Delete
[36072] Fix | Delete
/**
[36073] Fix | Delete
* WordPress dependencies
[36074] Fix | Delete
*/
[36075] Fix | Delete
[36076] Fix | Delete
[36077] Fix | Delete
var use_navigation_tree_nodes_useNavigationTreeNodes = function useNavigationTreeNodes() {
[36078] Fix | Delete
var _useState = Object(external_wp_element_["useState"])({}),
[36079] Fix | Delete
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
[36080] Fix | Delete
nodes = _useState2[0],
[36081] Fix | Delete
setNodes = _useState2[1];
[36082] Fix | Delete
[36083] Fix | Delete
var getNode = function getNode(key) {
[36084] Fix | Delete
return nodes[key];
[36085] Fix | Delete
};
[36086] Fix | Delete
[36087] Fix | Delete
var addNode = function addNode(key, value) {
[36088] Fix | Delete
return setNodes(function (original) {
[36089] Fix | Delete
return use_navigation_tree_nodes_objectSpread(use_navigation_tree_nodes_objectSpread({}, original), {}, Object(esm_defineProperty["a" /* default */])({}, key, Object(external_lodash_["omit"])(value, 'children')));
[36090] Fix | Delete
});
[36091] Fix | Delete
};
[36092] Fix | Delete
[36093] Fix | Delete
var removeNode = function removeNode(key) {
[36094] Fix | Delete
return setNodes(function (original) {
[36095] Fix | Delete
return Object(external_lodash_["omit"])(original, key);
[36096] Fix | Delete
});
[36097] Fix | Delete
};
[36098] Fix | Delete
[36099] Fix | Delete
return {
[36100] Fix | Delete
nodes: nodes,
[36101] Fix | Delete
getNode: getNode,
[36102] Fix | Delete
addNode: addNode,
[36103] Fix | Delete
removeNode: removeNode
[36104] Fix | Delete
};
[36105] Fix | Delete
};
[36106] Fix | Delete
[36107] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/use-create-navigation-tree.js
[36108] Fix | Delete
[36109] Fix | Delete
[36110] Fix | Delete
[36111] Fix | Delete
[36112] Fix | Delete
function use_create_navigation_tree_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; }
[36113] Fix | Delete
[36114] Fix | Delete
function use_create_navigation_tree_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { use_create_navigation_tree_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 { use_create_navigation_tree_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
[36115] Fix | Delete
[36116] Fix | Delete
/**
[36117] Fix | Delete
* WordPress dependencies
[36118] Fix | Delete
*/
[36119] Fix | Delete
[36120] Fix | Delete
/**
[36121] Fix | Delete
* Internal dependencies
[36122] Fix | Delete
*/
[36123] Fix | Delete
[36124] Fix | Delete
[36125] Fix | Delete
var use_create_navigation_tree_useCreateNavigationTree = function useCreateNavigationTree() {
[36126] Fix | Delete
var _useNavigationTreeNod = use_navigation_tree_nodes_useNavigationTreeNodes(),
[36127] Fix | Delete
items = _useNavigationTreeNod.nodes,
[36128] Fix | Delete
getItem = _useNavigationTreeNod.getNode,
[36129] Fix | Delete
addItem = _useNavigationTreeNod.addNode,
[36130] Fix | Delete
removeItem = _useNavigationTreeNod.removeNode;
[36131] Fix | Delete
[36132] Fix | Delete
var _useNavigationTreeNod2 = use_navigation_tree_nodes_useNavigationTreeNodes(),
[36133] Fix | Delete
menus = _useNavigationTreeNod2.nodes,
[36134] Fix | Delete
getMenu = _useNavigationTreeNod2.getNode,
[36135] Fix | Delete
_addMenu = _useNavigationTreeNod2.addNode,
[36136] Fix | Delete
removeMenu = _useNavigationTreeNod2.removeNode;
[36137] Fix | Delete
/**
[36138] Fix | Delete
* Stores direct nested menus of menus
[36139] Fix | Delete
* This makes it easy to traverse menu tree
[36140] Fix | Delete
*
[36141] Fix | Delete
* Key is the menu prop of the menu
[36142] Fix | Delete
* Value is an array of menu keys
[36143] Fix | Delete
*/
[36144] Fix | Delete
[36145] Fix | Delete
[36146] Fix | Delete
var _useState = Object(external_wp_element_["useState"])({}),
[36147] Fix | Delete
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
[36148] Fix | Delete
childMenu = _useState2[0],
[36149] Fix | Delete
setChildMenu = _useState2[1];
[36150] Fix | Delete
[36151] Fix | Delete
var getChildMenu = function getChildMenu(menu) {
[36152] Fix | Delete
return childMenu[menu] || [];
[36153] Fix | Delete
};
[36154] Fix | Delete
[36155] Fix | Delete
var traverseMenu = function traverseMenu(startMenu, callback) {
[36156] Fix | Delete
var visited = [];
[36157] Fix | Delete
var queue = [startMenu];
[36158] Fix | Delete
var current;
[36159] Fix | Delete
[36160] Fix | Delete
while (queue.length > 0) {
[36161] Fix | Delete
current = getMenu(queue.shift());
[36162] Fix | Delete
[36163] Fix | Delete
if (!current || visited.includes(current.menu)) {
[36164] Fix | Delete
continue;
[36165] Fix | Delete
}
[36166] Fix | Delete
[36167] Fix | Delete
visited.push(current.menu);
[36168] Fix | Delete
queue = [].concat(Object(toConsumableArray["a" /* default */])(queue), Object(toConsumableArray["a" /* default */])(getChildMenu(current.menu)));
[36169] Fix | Delete
[36170] Fix | Delete
if (callback(current) === false) {
[36171] Fix | Delete
break;
[36172] Fix | Delete
}
[36173] Fix | Delete
}
[36174] Fix | Delete
};
[36175] Fix | Delete
[36176] Fix | Delete
var isMenuEmpty = function isMenuEmpty(menuToCheck) {
[36177] Fix | Delete
var isEmpty = true;
[36178] Fix | Delete
traverseMenu(menuToCheck, function (current) {
[36179] Fix | Delete
if (!current.isEmpty) {
[36180] Fix | Delete
isEmpty = false;
[36181] Fix | Delete
return false;
[36182] Fix | Delete
}
[36183] Fix | Delete
});
[36184] Fix | Delete
return isEmpty;
[36185] Fix | Delete
};
[36186] Fix | Delete
[36187] Fix | Delete
return {
[36188] Fix | Delete
items: items,
[36189] Fix | Delete
getItem: getItem,
[36190] Fix | Delete
addItem: addItem,
[36191] Fix | Delete
removeItem: removeItem,
[36192] Fix | Delete
menus: menus,
[36193] Fix | Delete
getMenu: getMenu,
[36194] Fix | Delete
addMenu: function addMenu(key, value) {
[36195] Fix | Delete
setChildMenu(function (state) {
[36196] Fix | Delete
var newState = use_create_navigation_tree_objectSpread({}, state);
[36197] Fix | Delete
[36198] Fix | Delete
if (!newState[value.parentMenu]) {
[36199] Fix | Delete
newState[value.parentMenu] = [];
[36200] Fix | Delete
}
[36201] Fix | Delete
[36202] Fix | Delete
newState[value.parentMenu].push(key);
[36203] Fix | Delete
return newState;
[36204] Fix | Delete
});
[36205] Fix | Delete
[36206] Fix | Delete
_addMenu(key, value);
[36207] Fix | Delete
},
[36208] Fix | Delete
removeMenu: removeMenu,
[36209] Fix | Delete
childMenu: childMenu,
[36210] Fix | Delete
traverseMenu: traverseMenu,
[36211] Fix | Delete
isMenuEmpty: isMenuEmpty
[36212] Fix | Delete
};
[36213] Fix | Delete
};
[36214] Fix | Delete
[36215] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/index.js
[36216] Fix | Delete
[36217] Fix | Delete
[36218] Fix | Delete
[36219] Fix | Delete
[36220] Fix | Delete
/**
[36221] Fix | Delete
* External dependencies
[36222] Fix | Delete
*/
[36223] Fix | Delete
[36224] Fix | Delete
[36225] Fix | Delete
/**
[36226] Fix | Delete
* WordPress dependencies
[36227] Fix | Delete
*/
[36228] Fix | Delete
[36229] Fix | Delete
[36230] Fix | Delete
[36231] Fix | Delete
/**
[36232] Fix | Delete
* Internal dependencies
[36233] Fix | Delete
*/
[36234] Fix | Delete
[36235] Fix | Delete
[36236] Fix | Delete
[36237] Fix | Delete
[36238] Fix | Delete
[36239] Fix | Delete
[36240] Fix | Delete
function Navigation(_ref) {
[36241] Fix | Delete
var activeItem = _ref.activeItem,
[36242] Fix | Delete
_ref$activeMenu = _ref.activeMenu,
[36243] Fix | Delete
activeMenu = _ref$activeMenu === void 0 ? ROOT_MENU : _ref$activeMenu,
[36244] Fix | Delete
children = _ref.children,
[36245] Fix | Delete
className = _ref.className,
[36246] Fix | Delete
_ref$onActivateMenu = _ref.onActivateMenu,
[36247] Fix | Delete
onActivateMenu = _ref$onActivateMenu === void 0 ? external_lodash_["noop"] : _ref$onActivateMenu;
[36248] Fix | Delete
[36249] Fix | Delete
var _useState = Object(external_wp_element_["useState"])(activeMenu),
[36250] Fix | Delete
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
[36251] Fix | Delete
menu = _useState2[0],
[36252] Fix | Delete
setMenu = _useState2[1];
[36253] Fix | Delete
[36254] Fix | Delete
var _useState3 = Object(external_wp_element_["useState"])(),
[36255] Fix | Delete
_useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2),
[36256] Fix | Delete
slideOrigin = _useState4[0],
[36257] Fix | Delete
setSlideOrigin = _useState4[1];
[36258] Fix | Delete
[36259] Fix | Delete
var navigationTree = use_create_navigation_tree_useCreateNavigationTree();
[36260] Fix | Delete
var defaultSlideOrigin = Object(external_wp_i18n_["isRTL"])() ? 'right' : 'left';
[36261] Fix | Delete
[36262] Fix | Delete
var setActiveMenu = function setActiveMenu(menuId) {
[36263] Fix | Delete
var slideInOrigin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultSlideOrigin;
[36264] Fix | Delete
[36265] Fix | Delete
if (!navigationTree.getMenu(menuId)) {
[36266] Fix | Delete
return;
[36267] Fix | Delete
}
[36268] Fix | Delete
[36269] Fix | Delete
setSlideOrigin(slideInOrigin);
[36270] Fix | Delete
setMenu(menuId);
[36271] Fix | Delete
onActivateMenu(menuId);
[36272] Fix | Delete
}; // Used to prevent the sliding animation on mount
[36273] Fix | Delete
[36274] Fix | Delete
[36275] Fix | Delete
var isMounted = Object(external_wp_element_["useRef"])(false);
[36276] Fix | Delete
Object(external_wp_element_["useEffect"])(function () {
[36277] Fix | Delete
if (!isMounted.current) {
[36278] Fix | Delete
isMounted.current = true;
[36279] Fix | Delete
}
[36280] Fix | Delete
}, []);
[36281] Fix | Delete
Object(external_wp_element_["useEffect"])(function () {
[36282] Fix | Delete
if (activeMenu !== menu) {
[36283] Fix | Delete
setActiveMenu(activeMenu);
[36284] Fix | Delete
}
[36285] Fix | Delete
}, [activeMenu]);
[36286] Fix | Delete
var context = {
[36287] Fix | Delete
activeItem: activeItem,
[36288] Fix | Delete
activeMenu: menu,
[36289] Fix | Delete
setActiveMenu: setActiveMenu,
[36290] Fix | Delete
navigationTree: navigationTree
[36291] Fix | Delete
};
[36292] Fix | Delete
var classes = classnames_default()('components-navigation', className);
[36293] Fix | Delete
var animateClassName = Object(animate["b" /* getAnimateClassName */])({
[36294] Fix | Delete
type: 'slide-in',
[36295] Fix | Delete
origin: slideOrigin
[36296] Fix | Delete
});
[36297] Fix | Delete
return Object(external_wp_element_["createElement"])(NavigationUI, {
[36298] Fix | Delete
className: classes
[36299] Fix | Delete
}, Object(external_wp_element_["createElement"])("div", {
[36300] Fix | Delete
key: menu,
[36301] Fix | Delete
className: classnames_default()(Object(esm_defineProperty["a" /* default */])({}, animateClassName, isMounted.current && slideOrigin))
[36302] Fix | Delete
}, Object(external_wp_element_["createElement"])(NavigationContext.Provider, {
[36303] Fix | Delete
value: context
[36304] Fix | Delete
}, children)));
[36305] Fix | Delete
}
[36306] Fix | Delete
[36307] Fix | Delete
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-right.js
[36308] Fix | Delete
var chevron_right = __webpack_require__("1iEr");
[36309] Fix | Delete
[36310] Fix | Delete
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-left.js
[36311] Fix | Delete
var chevron_left = __webpack_require__("2gm7");
[36312] Fix | Delete
[36313] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/back-button/index.js
[36314] Fix | Delete
[36315] Fix | Delete
[36316] Fix | Delete
/**
[36317] Fix | Delete
* External dependencies
[36318] Fix | Delete
*/
[36319] Fix | Delete
[36320] Fix | Delete
/**
[36321] Fix | Delete
* WordPress dependencies
[36322] Fix | Delete
*/
[36323] Fix | Delete
[36324] Fix | Delete
[36325] Fix | Delete
[36326] Fix | Delete
[36327] Fix | Delete
/**
[36328] Fix | Delete
* Internal dependencies
[36329] Fix | Delete
*/
[36330] Fix | Delete
[36331] Fix | Delete
[36332] Fix | Delete
[36333] Fix | Delete
[36334] Fix | Delete
function NavigationBackButton(_ref, ref) {
[36335] Fix | Delete
var _navigationTree$getMe;
[36336] Fix | Delete
[36337] Fix | Delete
var backButtonLabel = _ref.backButtonLabel,
[36338] Fix | Delete
className = _ref.className,
[36339] Fix | Delete
href = _ref.href,
[36340] Fix | Delete
onClick = _ref.onClick,
[36341] Fix | Delete
parentMenu = _ref.parentMenu;
[36342] Fix | Delete
[36343] Fix | Delete
var _useNavigationContext = context_useNavigationContext(),
[36344] Fix | Delete
setActiveMenu = _useNavigationContext.setActiveMenu,
[36345] Fix | Delete
navigationTree = _useNavigationContext.navigationTree;
[36346] Fix | Delete
[36347] Fix | Delete
var classes = classnames_default()('components-navigation__back-button', className);
[36348] Fix | Delete
var parentMenuTitle = (_navigationTree$getMe = navigationTree.getMenu(parentMenu)) === null || _navigationTree$getMe === void 0 ? void 0 : _navigationTree$getMe.title;
[36349] Fix | Delete
[36350] Fix | Delete
var handleOnClick = function handleOnClick(event) {
[36351] Fix | Delete
if (typeof onClick === 'function') {
[36352] Fix | Delete
onClick(event);
[36353] Fix | Delete
}
[36354] Fix | Delete
[36355] Fix | Delete
var animationDirection = Object(external_wp_i18n_["isRTL"])() ? 'left' : 'right';
[36356] Fix | Delete
[36357] Fix | Delete
if (parentMenu && !event.defaultPrevented) {
[36358] Fix | Delete
setActiveMenu(parentMenu, animationDirection);
[36359] Fix | Delete
}
[36360] Fix | Delete
};
[36361] Fix | Delete
[36362] Fix | Delete
var icon = Object(external_wp_i18n_["isRTL"])() ? chevron_right["a" /* default */] : chevron_left["a" /* default */];
[36363] Fix | Delete
return Object(external_wp_element_["createElement"])(MenuBackButtonUI, {
[36364] Fix | Delete
className: classes,
[36365] Fix | Delete
href: href,
[36366] Fix | Delete
isTertiary: true,
[36367] Fix | Delete
ref: ref,
[36368] Fix | Delete
onClick: handleOnClick
[36369] Fix | Delete
}, Object(external_wp_element_["createElement"])(build_module_icon["a" /* default */], {
[36370] Fix | Delete
icon: icon
[36371] Fix | Delete
}), backButtonLabel || parentMenuTitle || Object(external_wp_i18n_["__"])('Back'));
[36372] Fix | Delete
}
[36373] Fix | Delete
[36374] Fix | Delete
/* harmony default export */ var back_button = (Object(external_wp_element_["forwardRef"])(NavigationBackButton));
[36375] Fix | Delete
[36376] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/group/context.js
[36377] Fix | Delete
/**
[36378] Fix | Delete
* WordPress dependencies
[36379] Fix | Delete
*/
[36380] Fix | Delete
[36381] Fix | Delete
var NavigationGroupContext = Object(external_wp_element_["createContext"])({
[36382] Fix | Delete
group: undefined
[36383] Fix | Delete
});
[36384] Fix | Delete
var context_useNavigationGroupContext = function useNavigationGroupContext() {
[36385] Fix | Delete
return Object(external_wp_element_["useContext"])(NavigationGroupContext);
[36386] Fix | Delete
};
[36387] Fix | Delete
[36388] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/group/index.js
[36389] Fix | Delete
[36390] Fix | Delete
[36391] Fix | Delete
[36392] Fix | Delete
/**
[36393] Fix | Delete
* External dependencies
[36394] Fix | Delete
*/
[36395] Fix | Delete
[36396] Fix | Delete
[36397] Fix | Delete
/**
[36398] Fix | Delete
* WordPress dependencies
[36399] Fix | Delete
*/
[36400] Fix | Delete
[36401] Fix | Delete
[36402] Fix | Delete
/**
[36403] Fix | Delete
* Internal dependencies
[36404] Fix | Delete
*/
[36405] Fix | Delete
[36406] Fix | Delete
[36407] Fix | Delete
[36408] Fix | Delete
[36409] Fix | Delete
function NavigationGroup(_ref) {
[36410] Fix | Delete
var children = _ref.children,
[36411] Fix | Delete
className = _ref.className,
[36412] Fix | Delete
title = _ref.title;
[36413] Fix | Delete
[36414] Fix | Delete
var _useState = Object(external_wp_element_["useState"])(Object(external_lodash_["uniqueId"])('group-')),
[36415] Fix | Delete
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 1),
[36416] Fix | Delete
groupId = _useState2[0];
[36417] Fix | Delete
[36418] Fix | Delete
var _useNavigationContext = context_useNavigationContext(),
[36419] Fix | Delete
items = _useNavigationContext.navigationTree.items;
[36420] Fix | Delete
[36421] Fix | Delete
var context = {
[36422] Fix | Delete
group: groupId
[36423] Fix | Delete
}; // Keep the children rendered to make sure invisible items are included in the navigation tree.
[36424] Fix | Delete
[36425] Fix | Delete
if (!Object(external_lodash_["find"])(items, {
[36426] Fix | Delete
group: groupId,
[36427] Fix | Delete
_isVisible: true
[36428] Fix | Delete
})) {
[36429] Fix | Delete
return Object(external_wp_element_["createElement"])(NavigationGroupContext.Provider, {
[36430] Fix | Delete
value: context
[36431] Fix | Delete
}, children);
[36432] Fix | Delete
}
[36433] Fix | Delete
[36434] Fix | Delete
var groupTitleId = "components-navigation__group-title-".concat(groupId);
[36435] Fix | Delete
var classes = classnames_default()('components-navigation__group', className);
[36436] Fix | Delete
return Object(external_wp_element_["createElement"])(NavigationGroupContext.Provider, {
[36437] Fix | Delete
value: context
[36438] Fix | Delete
}, Object(external_wp_element_["createElement"])("li", {
[36439] Fix | Delete
className: classes
[36440] Fix | Delete
}, title && Object(external_wp_element_["createElement"])(GroupTitleUI, {
[36441] Fix | Delete
as: "h3",
[36442] Fix | Delete
className: "components-navigation__group-title",
[36443] Fix | Delete
id: groupTitleId,
[36444] Fix | Delete
variant: "caption"
[36445] Fix | Delete
}, title), Object(external_wp_element_["createElement"])("ul", {
[36446] Fix | Delete
"aria-labelledby": groupTitleId,
[36447] Fix | Delete
role: "group"
[36448] Fix | Delete
}, children)));
[36449] Fix | Delete
}
[36450] Fix | Delete
[36451] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/item/base-content.js
[36452] Fix | Delete
[36453] Fix | Delete
[36454] Fix | Delete
/**
[36455] Fix | Delete
* Internal dependencies
[36456] Fix | Delete
*/
[36457] Fix | Delete
[36458] Fix | Delete
function NavigationItemBaseContent(props) {
[36459] Fix | Delete
var badge = props.badge,
[36460] Fix | Delete
title = props.title;
[36461] Fix | Delete
return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, title && Object(external_wp_element_["createElement"])(ItemTitleUI, {
[36462] Fix | Delete
className: "components-navigation__item-title",
[36463] Fix | Delete
variant: "body.small",
[36464] Fix | Delete
as: "span"
[36465] Fix | Delete
}, title), badge && Object(external_wp_element_["createElement"])(ItemBadgeUI, {
[36466] Fix | Delete
className: "components-navigation__item-badge"
[36467] Fix | Delete
}, badge));
[36468] Fix | Delete
}
[36469] Fix | Delete
[36470] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/menu/context.js
[36471] Fix | Delete
/**
[36472] Fix | Delete
* WordPress dependencies
[36473] Fix | Delete
*/
[36474] Fix | Delete
[36475] Fix | Delete
var NavigationMenuContext = Object(external_wp_element_["createContext"])({
[36476] Fix | Delete
menu: undefined,
[36477] Fix | Delete
search: ''
[36478] Fix | Delete
});
[36479] Fix | Delete
var context_useNavigationMenuContext = function useNavigationMenuContext() {
[36480] Fix | Delete
return Object(external_wp_element_["useContext"])(NavigationMenuContext);
[36481] Fix | Delete
};
[36482] Fix | Delete
[36483] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/utils.js
[36484] Fix | Delete
/**
[36485] Fix | Delete
* External dependencies
[36486] Fix | Delete
*/
[36487] Fix | Delete
// @see packages/block-editor/src/components/inserter/search-items.js
[36488] Fix | Delete
[36489] Fix | Delete
var utils_normalizeInput = function normalizeInput(input) {
[36490] Fix | Delete
return Object(external_lodash_["deburr"])(input).replace(/^\//, '').toLowerCase();
[36491] Fix | Delete
};
[36492] Fix | Delete
var normalizedSearch = function normalizedSearch(title, search) {
[36493] Fix | Delete
return -1 !== utils_normalizeInput(title).indexOf(utils_normalizeInput(search));
[36494] Fix | Delete
};
[36495] Fix | Delete
[36496] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/item/use-navigation-tree-item.js
[36497] Fix | Delete
[36498] Fix | Delete
[36499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function