Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-inclu.../js/dist
File: block-editor.js
const focusingOutsideGroup = !event.currentTarget.contains(event.relatedTarget);
[45000] Fix | Delete
if (focusingOutsideGroup) {
[45001] Fix | Delete
setShouldSpeak(false);
[45002] Fix | Delete
}
[45003] Fix | Delete
},
[45004] Fix | Delete
...props
[45005] Fix | Delete
});
[45006] Fix | Delete
}
[45007] Fix | Delete
/* harmony default export */ const group = ((0,external_wp_element_namespaceObject.forwardRef)(InserterListboxGroup));
[45008] Fix | Delete
[45009] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter-listbox/row.js
[45010] Fix | Delete
/**
[45011] Fix | Delete
* WordPress dependencies
[45012] Fix | Delete
*/
[45013] Fix | Delete
[45014] Fix | Delete
[45015] Fix | Delete
[45016] Fix | Delete
/**
[45017] Fix | Delete
* Internal dependencies
[45018] Fix | Delete
*/
[45019] Fix | Delete
[45020] Fix | Delete
[45021] Fix | Delete
const {
[45022] Fix | Delete
CompositeGroupV2: CompositeGroup
[45023] Fix | Delete
} = unlock(external_wp_components_namespaceObject.privateApis);
[45024] Fix | Delete
function InserterListboxRow(props, ref) {
[45025] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CompositeGroup, {
[45026] Fix | Delete
role: "presentation",
[45027] Fix | Delete
ref: ref,
[45028] Fix | Delete
...props
[45029] Fix | Delete
});
[45030] Fix | Delete
}
[45031] Fix | Delete
/* harmony default export */ const inserter_listbox_row = ((0,external_wp_element_namespaceObject.forwardRef)(InserterListboxRow));
[45032] Fix | Delete
[45033] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-types-list/index.js
[45034] Fix | Delete
/**
[45035] Fix | Delete
* WordPress dependencies
[45036] Fix | Delete
*/
[45037] Fix | Delete
[45038] Fix | Delete
[45039] Fix | Delete
[45040] Fix | Delete
/**
[45041] Fix | Delete
* Internal dependencies
[45042] Fix | Delete
*/
[45043] Fix | Delete
[45044] Fix | Delete
[45045] Fix | Delete
[45046] Fix | Delete
[45047] Fix | Delete
function chunk(array, size) {
[45048] Fix | Delete
const chunks = [];
[45049] Fix | Delete
for (let i = 0, j = array.length; i < j; i += size) {
[45050] Fix | Delete
chunks.push(array.slice(i, i + size));
[45051] Fix | Delete
}
[45052] Fix | Delete
return chunks;
[45053] Fix | Delete
}
[45054] Fix | Delete
function BlockTypesList({
[45055] Fix | Delete
items = [],
[45056] Fix | Delete
onSelect,
[45057] Fix | Delete
onHover = () => {},
[45058] Fix | Delete
children,
[45059] Fix | Delete
label,
[45060] Fix | Delete
isDraggable = true
[45061] Fix | Delete
}) {
[45062] Fix | Delete
const className = 'block-editor-block-types-list';
[45063] Fix | Delete
const listId = (0,external_wp_compose_namespaceObject.useInstanceId)(BlockTypesList, className);
[45064] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(group, {
[45065] Fix | Delete
className: className,
[45066] Fix | Delete
"aria-label": label,
[45067] Fix | Delete
children: [chunk(items, 3).map((row, i) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inserter_listbox_row, {
[45068] Fix | Delete
children: row.map((item, j) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inserter_list_item, {
[45069] Fix | Delete
item: item,
[45070] Fix | Delete
className: (0,external_wp_blocks_namespaceObject.getBlockMenuDefaultClassName)(item.id),
[45071] Fix | Delete
onSelect: onSelect,
[45072] Fix | Delete
onHover: onHover,
[45073] Fix | Delete
isDraggable: isDraggable && !item.isDisabled,
[45074] Fix | Delete
isFirst: i === 0 && j === 0,
[45075] Fix | Delete
rowId: `${listId}-${i}`
[45076] Fix | Delete
}, item.id))
[45077] Fix | Delete
}, i)), children]
[45078] Fix | Delete
});
[45079] Fix | Delete
}
[45080] Fix | Delete
/* harmony default export */ const block_types_list = (BlockTypesList);
[45081] Fix | Delete
[45082] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/panel.js
[45083] Fix | Delete
/**
[45084] Fix | Delete
* WordPress dependencies
[45085] Fix | Delete
*/
[45086] Fix | Delete
[45087] Fix | Delete
[45088] Fix | Delete
[45089] Fix | Delete
[45090] Fix | Delete
function InserterPanel({
[45091] Fix | Delete
title,
[45092] Fix | Delete
icon,
[45093] Fix | Delete
children
[45094] Fix | Delete
}) {
[45095] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[45096] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
[45097] Fix | Delete
className: "block-editor-inserter__panel-header",
[45098] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h2", {
[45099] Fix | Delete
className: "block-editor-inserter__panel-title",
[45100] Fix | Delete
children: title
[45101] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Icon, {
[45102] Fix | Delete
icon: icon
[45103] Fix | Delete
})]
[45104] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
[45105] Fix | Delete
className: "block-editor-inserter__panel-content",
[45106] Fix | Delete
children: children
[45107] Fix | Delete
})]
[45108] Fix | Delete
});
[45109] Fix | Delete
}
[45110] Fix | Delete
/* harmony default export */ const panel = (InserterPanel);
[45111] Fix | Delete
[45112] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter-listbox/index.js
[45113] Fix | Delete
/**
[45114] Fix | Delete
* WordPress dependencies
[45115] Fix | Delete
*/
[45116] Fix | Delete
[45117] Fix | Delete
[45118] Fix | Delete
/**
[45119] Fix | Delete
* Internal dependencies
[45120] Fix | Delete
*/
[45121] Fix | Delete
[45122] Fix | Delete
[45123] Fix | Delete
[45124] Fix | Delete
[45125] Fix | Delete
[45126] Fix | Delete
[45127] Fix | Delete
const {
[45128] Fix | Delete
CompositeV2: inserter_listbox_Composite,
[45129] Fix | Delete
useCompositeStoreV2: inserter_listbox_useCompositeStore
[45130] Fix | Delete
} = unlock(external_wp_components_namespaceObject.privateApis);
[45131] Fix | Delete
function InserterListbox({
[45132] Fix | Delete
children
[45133] Fix | Delete
}) {
[45134] Fix | Delete
const store = inserter_listbox_useCompositeStore({
[45135] Fix | Delete
focusShift: true,
[45136] Fix | Delete
focusWrap: 'horizontal'
[45137] Fix | Delete
});
[45138] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inserter_listbox_Composite, {
[45139] Fix | Delete
store: store,
[45140] Fix | Delete
render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {}),
[45141] Fix | Delete
children: children
[45142] Fix | Delete
});
[45143] Fix | Delete
}
[45144] Fix | Delete
/* harmony default export */ const inserter_listbox = (InserterListbox);
[45145] Fix | Delete
[45146] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/no-results.js
[45147] Fix | Delete
/**
[45148] Fix | Delete
* WordPress dependencies
[45149] Fix | Delete
*/
[45150] Fix | Delete
[45151] Fix | Delete
[45152] Fix | Delete
[45153] Fix | Delete
[45154] Fix | Delete
function InserterNoResults() {
[45155] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
[45156] Fix | Delete
className: "block-editor-inserter__no-results",
[45157] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
[45158] Fix | Delete
className: "block-editor-inserter__no-results-icon",
[45159] Fix | Delete
icon: block_default
[45160] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
[45161] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('No results found.')
[45162] Fix | Delete
})]
[45163] Fix | Delete
});
[45164] Fix | Delete
}
[45165] Fix | Delete
/* harmony default export */ const no_results = (InserterNoResults);
[45166] Fix | Delete
[45167] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/block-types-tab.js
[45168] Fix | Delete
/**
[45169] Fix | Delete
* WordPress dependencies
[45170] Fix | Delete
*/
[45171] Fix | Delete
[45172] Fix | Delete
[45173] Fix | Delete
[45174] Fix | Delete
[45175] Fix | Delete
/**
[45176] Fix | Delete
* Internal dependencies
[45177] Fix | Delete
*/
[45178] Fix | Delete
[45179] Fix | Delete
[45180] Fix | Delete
[45181] Fix | Delete
[45182] Fix | Delete
[45183] Fix | Delete
[45184] Fix | Delete
[45185] Fix | Delete
[45186] Fix | Delete
[45187] Fix | Delete
const getBlockNamespace = item => item.name.split('/')[0];
[45188] Fix | Delete
const MAX_SUGGESTED_ITEMS = 6;
[45189] Fix | Delete
[45190] Fix | Delete
/**
[45191] Fix | Delete
* Shared reference to an empty array for cases where it is important to avoid
[45192] Fix | Delete
* returning a new array reference on every invocation and rerendering the component.
[45193] Fix | Delete
*
[45194] Fix | Delete
* @type {Array}
[45195] Fix | Delete
*/
[45196] Fix | Delete
const block_types_tab_EMPTY_ARRAY = [];
[45197] Fix | Delete
function BlockTypesTabPanel({
[45198] Fix | Delete
items,
[45199] Fix | Delete
collections,
[45200] Fix | Delete
categories,
[45201] Fix | Delete
onSelectItem,
[45202] Fix | Delete
onHover,
[45203] Fix | Delete
showMostUsedBlocks,
[45204] Fix | Delete
className
[45205] Fix | Delete
}) {
[45206] Fix | Delete
const suggestedItems = (0,external_wp_element_namespaceObject.useMemo)(() => {
[45207] Fix | Delete
return orderBy(items, 'frecency', 'desc').slice(0, MAX_SUGGESTED_ITEMS);
[45208] Fix | Delete
}, [items]);
[45209] Fix | Delete
const uncategorizedItems = (0,external_wp_element_namespaceObject.useMemo)(() => {
[45210] Fix | Delete
return items.filter(item => !item.category);
[45211] Fix | Delete
}, [items]);
[45212] Fix | Delete
const itemsPerCollection = (0,external_wp_element_namespaceObject.useMemo)(() => {
[45213] Fix | Delete
// Create a new Object to avoid mutating collection.
[45214] Fix | Delete
const result = {
[45215] Fix | Delete
...collections
[45216] Fix | Delete
};
[45217] Fix | Delete
Object.keys(collections).forEach(namespace => {
[45218] Fix | Delete
result[namespace] = items.filter(item => getBlockNamespace(item) === namespace);
[45219] Fix | Delete
if (result[namespace].length === 0) {
[45220] Fix | Delete
delete result[namespace];
[45221] Fix | Delete
}
[45222] Fix | Delete
});
[45223] Fix | Delete
return result;
[45224] Fix | Delete
}, [items, collections]);
[45225] Fix | Delete
[45226] Fix | Delete
// Hide block preview on unmount.
[45227] Fix | Delete
(0,external_wp_element_namespaceObject.useEffect)(() => () => onHover(null), []);
[45228] Fix | Delete
[45229] Fix | Delete
/**
[45230] Fix | Delete
* The inserter contains a big number of blocks and opening it is a costful operation.
[45231] Fix | Delete
* The rendering is the most costful part of it, in order to improve the responsiveness
[45232] Fix | Delete
* of the "opening" action, these lazy lists allow us to render the inserter category per category,
[45233] Fix | Delete
* once all the categories are rendered, we start rendering the collections and the uncategorized block types.
[45234] Fix | Delete
*/
[45235] Fix | Delete
const currentlyRenderedCategories = (0,external_wp_compose_namespaceObject.useAsyncList)(categories);
[45236] Fix | Delete
const didRenderAllCategories = categories.length === currentlyRenderedCategories.length;
[45237] Fix | Delete
[45238] Fix | Delete
// Async List requires an array.
[45239] Fix | Delete
const collectionEntries = (0,external_wp_element_namespaceObject.useMemo)(() => {
[45240] Fix | Delete
return Object.entries(collections);
[45241] Fix | Delete
}, [collections]);
[45242] Fix | Delete
const currentlyRenderedCollections = (0,external_wp_compose_namespaceObject.useAsyncList)(didRenderAllCategories ? collectionEntries : block_types_tab_EMPTY_ARRAY);
[45243] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
[45244] Fix | Delete
className: className,
[45245] Fix | Delete
children: [showMostUsedBlocks &&
[45246] Fix | Delete
// Only show the most used blocks if the total amount of block
[45247] Fix | Delete
// is larger than 1 row, otherwise it is not so useful.
[45248] Fix | Delete
items.length > 3 && !!suggestedItems.length && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(panel, {
[45249] Fix | Delete
title: (0,external_wp_i18n_namespaceObject._x)('Most used', 'blocks'),
[45250] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_types_list, {
[45251] Fix | Delete
items: suggestedItems,
[45252] Fix | Delete
onSelect: onSelectItem,
[45253] Fix | Delete
onHover: onHover,
[45254] Fix | Delete
label: (0,external_wp_i18n_namespaceObject._x)('Most used', 'blocks')
[45255] Fix | Delete
})
[45256] Fix | Delete
}), currentlyRenderedCategories.map(category => {
[45257] Fix | Delete
const categoryItems = items.filter(item => item.category === category.slug);
[45258] Fix | Delete
if (!categoryItems || !categoryItems.length) {
[45259] Fix | Delete
return null;
[45260] Fix | Delete
}
[45261] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(panel, {
[45262] Fix | Delete
title: category.title,
[45263] Fix | Delete
icon: category.icon,
[45264] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_types_list, {
[45265] Fix | Delete
items: categoryItems,
[45266] Fix | Delete
onSelect: onSelectItem,
[45267] Fix | Delete
onHover: onHover,
[45268] Fix | Delete
label: category.title
[45269] Fix | Delete
})
[45270] Fix | Delete
}, category.slug);
[45271] Fix | Delete
}), didRenderAllCategories && uncategorizedItems.length > 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(panel, {
[45272] Fix | Delete
className: "block-editor-inserter__uncategorized-blocks-panel",
[45273] Fix | Delete
title: (0,external_wp_i18n_namespaceObject.__)('Uncategorized'),
[45274] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_types_list, {
[45275] Fix | Delete
items: uncategorizedItems,
[45276] Fix | Delete
onSelect: onSelectItem,
[45277] Fix | Delete
onHover: onHover,
[45278] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Uncategorized')
[45279] Fix | Delete
})
[45280] Fix | Delete
}), currentlyRenderedCollections.map(([namespace, collection]) => {
[45281] Fix | Delete
const collectionItems = itemsPerCollection[namespace];
[45282] Fix | Delete
if (!collectionItems || !collectionItems.length) {
[45283] Fix | Delete
return null;
[45284] Fix | Delete
}
[45285] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(panel, {
[45286] Fix | Delete
title: collection.title,
[45287] Fix | Delete
icon: collection.icon,
[45288] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_types_list, {
[45289] Fix | Delete
items: collectionItems,
[45290] Fix | Delete
onSelect: onSelectItem,
[45291] Fix | Delete
onHover: onHover,
[45292] Fix | Delete
label: collection.title
[45293] Fix | Delete
})
[45294] Fix | Delete
}, namespace);
[45295] Fix | Delete
})]
[45296] Fix | Delete
});
[45297] Fix | Delete
}
[45298] Fix | Delete
function BlockTypesTab({
[45299] Fix | Delete
rootClientId,
[45300] Fix | Delete
onInsert,
[45301] Fix | Delete
onHover,
[45302] Fix | Delete
showMostUsedBlocks
[45303] Fix | Delete
}, ref) {
[45304] Fix | Delete
const [items, categories, collections, onSelectItem] = use_block_types_state(rootClientId, onInsert);
[45305] Fix | Delete
if (!items.length) {
[45306] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(no_results, {});
[45307] Fix | Delete
}
[45308] Fix | Delete
const itemsForCurrentRoot = [];
[45309] Fix | Delete
const itemsRemaining = [];
[45310] Fix | Delete
for (const item of items) {
[45311] Fix | Delete
// Skip reusable blocks, they moved to the patterns tab.
[45312] Fix | Delete
if (item.category === 'reusable') {
[45313] Fix | Delete
continue;
[45314] Fix | Delete
}
[45315] Fix | Delete
if (rootClientId && item.rootClientId === rootClientId) {
[45316] Fix | Delete
itemsForCurrentRoot.push(item);
[45317] Fix | Delete
} else {
[45318] Fix | Delete
itemsRemaining.push(item);
[45319] Fix | Delete
}
[45320] Fix | Delete
}
[45321] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inserter_listbox, {
[45322] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
[45323] Fix | Delete
ref: ref,
[45324] Fix | Delete
children: [!!itemsForCurrentRoot.length && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[45325] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockTypesTabPanel, {
[45326] Fix | Delete
items: itemsForCurrentRoot,
[45327] Fix | Delete
categories: categories,
[45328] Fix | Delete
collections: collections,
[45329] Fix | Delete
onSelectItem: onSelectItem,
[45330] Fix | Delete
onHover: onHover,
[45331] Fix | Delete
showMostUsedBlocks: showMostUsedBlocks,
[45332] Fix | Delete
className: "block-editor-inserter__insertable-blocks-at-selection"
[45333] Fix | Delete
})
[45334] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockTypesTabPanel, {
[45335] Fix | Delete
items: itemsRemaining,
[45336] Fix | Delete
categories: categories,
[45337] Fix | Delete
collections: collections,
[45338] Fix | Delete
onSelectItem: onSelectItem,
[45339] Fix | Delete
onHover: onHover,
[45340] Fix | Delete
showMostUsedBlocks: showMostUsedBlocks,
[45341] Fix | Delete
className: "block-editor-inserter__all-blocks"
[45342] Fix | Delete
})]
[45343] Fix | Delete
})
[45344] Fix | Delete
});
[45345] Fix | Delete
}
[45346] Fix | Delete
/* harmony default export */ const block_types_tab = ((0,external_wp_element_namespaceObject.forwardRef)(BlockTypesTab));
[45347] Fix | Delete
[45348] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/block-patterns-explorer/pattern-explorer-sidebar.js
[45349] Fix | Delete
/**
[45350] Fix | Delete
* WordPress dependencies
[45351] Fix | Delete
*/
[45352] Fix | Delete
[45353] Fix | Delete
[45354] Fix | Delete
[45355] Fix | Delete
[45356] Fix | Delete
function PatternCategoriesList({
[45357] Fix | Delete
selectedCategory,
[45358] Fix | Delete
patternCategories,
[45359] Fix | Delete
onClickCategory
[45360] Fix | Delete
}) {
[45361] Fix | Delete
const baseClassName = 'block-editor-block-patterns-explorer__sidebar';
[45362] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
[45363] Fix | Delete
className: `${baseClassName}__categories-list`,
[45364] Fix | Delete
children: patternCategories.map(({
[45365] Fix | Delete
name,
[45366] Fix | Delete
label
[45367] Fix | Delete
}) => {
[45368] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
[45369] Fix | Delete
label: label,
[45370] Fix | Delete
className: `${baseClassName}__categories-list__item`,
[45371] Fix | Delete
isPressed: selectedCategory === name,
[45372] Fix | Delete
onClick: () => {
[45373] Fix | Delete
onClickCategory(name);
[45374] Fix | Delete
},
[45375] Fix | Delete
children: label
[45376] Fix | Delete
}, name);
[45377] Fix | Delete
})
[45378] Fix | Delete
});
[45379] Fix | Delete
}
[45380] Fix | Delete
function PatternsExplorerSearch({
[45381] Fix | Delete
searchValue,
[45382] Fix | Delete
setSearchValue
[45383] Fix | Delete
}) {
[45384] Fix | Delete
const baseClassName = 'block-editor-block-patterns-explorer__search';
[45385] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
[45386] Fix | Delete
className: baseClassName,
[45387] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SearchControl, {
[45388] Fix | Delete
__nextHasNoMarginBottom: true,
[45389] Fix | Delete
onChange: setSearchValue,
[45390] Fix | Delete
value: searchValue,
[45391] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Search for patterns'),
[45392] Fix | Delete
placeholder: (0,external_wp_i18n_namespaceObject.__)('Search')
[45393] Fix | Delete
})
[45394] Fix | Delete
});
[45395] Fix | Delete
}
[45396] Fix | Delete
function PatternExplorerSidebar({
[45397] Fix | Delete
selectedCategory,
[45398] Fix | Delete
patternCategories,
[45399] Fix | Delete
onClickCategory,
[45400] Fix | Delete
searchValue,
[45401] Fix | Delete
setSearchValue
[45402] Fix | Delete
}) {
[45403] Fix | Delete
const baseClassName = 'block-editor-block-patterns-explorer__sidebar';
[45404] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
[45405] Fix | Delete
className: baseClassName,
[45406] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PatternsExplorerSearch, {
[45407] Fix | Delete
searchValue: searchValue,
[45408] Fix | Delete
setSearchValue: setSearchValue
[45409] Fix | Delete
}), !searchValue && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PatternCategoriesList, {
[45410] Fix | Delete
selectedCategory: selectedCategory,
[45411] Fix | Delete
patternCategories: patternCategories,
[45412] Fix | Delete
onClickCategory: onClickCategory
[45413] Fix | Delete
})]
[45414] Fix | Delete
});
[45415] Fix | Delete
}
[45416] Fix | Delete
/* harmony default export */ const pattern_explorer_sidebar = (PatternExplorerSidebar);
[45417] Fix | Delete
[45418] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-patterns-paging/index.js
[45419] Fix | Delete
/**
[45420] Fix | Delete
* WordPress dependencies
[45421] Fix | Delete
*/
[45422] Fix | Delete
[45423] Fix | Delete
[45424] Fix | Delete
[45425] Fix | Delete
[45426] Fix | Delete
function Pagination({
[45427] Fix | Delete
currentPage,
[45428] Fix | Delete
numPages,
[45429] Fix | Delete
changePage,
[45430] Fix | Delete
totalItems
[45431] Fix | Delete
}) {
[45432] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
[45433] Fix | Delete
className: "block-editor-patterns__grid-pagination-wrapper",
[45434] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
[45435] Fix | Delete
variant: "muted",
[45436] Fix | Delete
children:
[45437] Fix | Delete
// translators: %s: Total number of patterns.
[45438] Fix | Delete
(0,external_wp_i18n_namespaceObject.sprintf)(
[45439] Fix | Delete
// translators: %s: Total number of patterns.
[45440] Fix | Delete
(0,external_wp_i18n_namespaceObject._n)('%s item', '%s items', totalItems), totalItems)
[45441] Fix | Delete
}), numPages > 1 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
[45442] Fix | Delete
expanded: false,
[45443] Fix | Delete
spacing: 3,
[45444] Fix | Delete
justify: "flex-start",
[45445] Fix | Delete
className: "block-editor-patterns__grid-pagination",
[45446] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
[45447] Fix | Delete
expanded: false,
[45448] Fix | Delete
spacing: 1,
[45449] Fix | Delete
className: "block-editor-patterns__grid-pagination-previous",
[45450] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
[45451] Fix | Delete
variant: "tertiary",
[45452] Fix | Delete
onClick: () => changePage(1),
[45453] Fix | Delete
disabled: currentPage === 1,
[45454] Fix | Delete
"aria-label": (0,external_wp_i18n_namespaceObject.__)('First page'),
[45455] Fix | Delete
__experimentalIsFocusable: true,
[45456] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
[45457] Fix | Delete
children: "\xAB"
[45458] Fix | Delete
})
[45459] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
[45460] Fix | Delete
variant: "tertiary",
[45461] Fix | Delete
onClick: () => changePage(currentPage - 1),
[45462] Fix | Delete
disabled: currentPage === 1,
[45463] Fix | Delete
"aria-label": (0,external_wp_i18n_namespaceObject.__)('Previous page'),
[45464] Fix | Delete
__experimentalIsFocusable: true,
[45465] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
[45466] Fix | Delete
children: "\u2039"
[45467] Fix | Delete
})
[45468] Fix | Delete
})]
[45469] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
[45470] Fix | Delete
variant: "muted",
[45471] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.sprintf)(
[45472] Fix | Delete
// translators: %1$s: Current page number, %2$s: Total number of pages.
[45473] Fix | Delete
(0,external_wp_i18n_namespaceObject._x)('%1$s of %2$s', 'paging'), currentPage, numPages)
[45474] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
[45475] Fix | Delete
expanded: false,
[45476] Fix | Delete
spacing: 1,
[45477] Fix | Delete
className: "block-editor-patterns__grid-pagination-next",
[45478] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
[45479] Fix | Delete
variant: "tertiary",
[45480] Fix | Delete
onClick: () => changePage(currentPage + 1),
[45481] Fix | Delete
disabled: currentPage === numPages,
[45482] Fix | Delete
"aria-label": (0,external_wp_i18n_namespaceObject.__)('Next page'),
[45483] Fix | Delete
__experimentalIsFocusable: true,
[45484] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
[45485] Fix | Delete
children: "\u203A"
[45486] Fix | Delete
})
[45487] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
[45488] Fix | Delete
variant: "tertiary",
[45489] Fix | Delete
onClick: () => changePage(numPages),
[45490] Fix | Delete
disabled: currentPage === numPages,
[45491] Fix | Delete
"aria-label": (0,external_wp_i18n_namespaceObject.__)('Last page'),
[45492] Fix | Delete
size: "default",
[45493] Fix | Delete
__experimentalIsFocusable: true,
[45494] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
[45495] Fix | Delete
children: "\xBB"
[45496] Fix | Delete
})
[45497] Fix | Delete
})]
[45498] Fix | Delete
})]
[45499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function