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: edit-widgets.js
})]
[4500] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
[4501] Fix | Delete
className: "edit-widgets-editor__list-view-panel-content",
[4502] Fix | Delete
ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([focusOnMountRef, setDropZoneElement]),
[4503] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalListView, {
[4504] Fix | Delete
dropZoneElement: dropZoneElement
[4505] Fix | Delete
})
[4506] Fix | Delete
})]
[4507] Fix | Delete
})
[4508] Fix | Delete
);
[4509] Fix | Delete
}
[4510] Fix | Delete
[4511] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/secondary-sidebar/index.js
[4512] Fix | Delete
/**
[4513] Fix | Delete
* WordPress dependencies
[4514] Fix | Delete
*/
[4515] Fix | Delete
[4516] Fix | Delete
/**
[4517] Fix | Delete
* Internal dependencies
[4518] Fix | Delete
*/
[4519] Fix | Delete
[4520] Fix | Delete
[4521] Fix | Delete
/**
[4522] Fix | Delete
* Internal dependencies
[4523] Fix | Delete
*/
[4524] Fix | Delete
[4525] Fix | Delete
[4526] Fix | Delete
[4527] Fix | Delete
function SecondarySidebar() {
[4528] Fix | Delete
const {
[4529] Fix | Delete
isInserterOpen,
[4530] Fix | Delete
isListViewOpen
[4531] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
[4532] Fix | Delete
const {
[4533] Fix | Delete
isInserterOpened,
[4534] Fix | Delete
isListViewOpened
[4535] Fix | Delete
} = select(store_store);
[4536] Fix | Delete
return {
[4537] Fix | Delete
isInserterOpen: isInserterOpened(),
[4538] Fix | Delete
isListViewOpen: isListViewOpened()
[4539] Fix | Delete
};
[4540] Fix | Delete
}, []);
[4541] Fix | Delete
if (isInserterOpen) {
[4542] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InserterSidebar, {});
[4543] Fix | Delete
}
[4544] Fix | Delete
if (isListViewOpen) {
[4545] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ListViewSidebar, {});
[4546] Fix | Delete
}
[4547] Fix | Delete
return null;
[4548] Fix | Delete
}
[4549] Fix | Delete
[4550] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/layout/interface.js
[4551] Fix | Delete
/**
[4552] Fix | Delete
* WordPress dependencies
[4553] Fix | Delete
*/
[4554] Fix | Delete
[4555] Fix | Delete
[4556] Fix | Delete
[4557] Fix | Delete
[4558] Fix | Delete
[4559] Fix | Delete
[4560] Fix | Delete
[4561] Fix | Delete
[4562] Fix | Delete
[4563] Fix | Delete
/**
[4564] Fix | Delete
* Internal dependencies
[4565] Fix | Delete
*/
[4566] Fix | Delete
[4567] Fix | Delete
[4568] Fix | Delete
[4569] Fix | Delete
[4570] Fix | Delete
[4571] Fix | Delete
[4572] Fix | Delete
const interfaceLabels = {
[4573] Fix | Delete
/* translators: accessibility text for the widgets screen top bar landmark region. */
[4574] Fix | Delete
header: (0,external_wp_i18n_namespaceObject.__)('Widgets top bar'),
[4575] Fix | Delete
/* translators: accessibility text for the widgets screen content landmark region. */
[4576] Fix | Delete
body: (0,external_wp_i18n_namespaceObject.__)('Widgets and blocks'),
[4577] Fix | Delete
/* translators: accessibility text for the widgets screen settings landmark region. */
[4578] Fix | Delete
sidebar: (0,external_wp_i18n_namespaceObject.__)('Widgets settings'),
[4579] Fix | Delete
/* translators: accessibility text for the widgets screen footer landmark region. */
[4580] Fix | Delete
footer: (0,external_wp_i18n_namespaceObject.__)('Widgets footer')
[4581] Fix | Delete
};
[4582] Fix | Delete
function Interface({
[4583] Fix | Delete
blockEditorSettings
[4584] Fix | Delete
}) {
[4585] Fix | Delete
const isMobileViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
[4586] Fix | Delete
const isHugeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('huge', '>=');
[4587] Fix | Delete
const {
[4588] Fix | Delete
setIsInserterOpened,
[4589] Fix | Delete
setIsListViewOpened,
[4590] Fix | Delete
closeGeneralSidebar
[4591] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
[4592] Fix | Delete
const {
[4593] Fix | Delete
hasBlockBreadCrumbsEnabled,
[4594] Fix | Delete
hasSidebarEnabled,
[4595] Fix | Delete
isInserterOpened,
[4596] Fix | Delete
isListViewOpened,
[4597] Fix | Delete
previousShortcut,
[4598] Fix | Delete
nextShortcut
[4599] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(select => ({
[4600] Fix | Delete
hasSidebarEnabled: !!select(store).getActiveComplementaryArea(store_store.name),
[4601] Fix | Delete
isInserterOpened: !!select(store_store).isInserterOpened(),
[4602] Fix | Delete
isListViewOpened: !!select(store_store).isListViewOpened(),
[4603] Fix | Delete
hasBlockBreadCrumbsEnabled: !!select(external_wp_preferences_namespaceObject.store).get('core/edit-widgets', 'showBlockBreadcrumbs'),
[4604] Fix | Delete
previousShortcut: select(external_wp_keyboardShortcuts_namespaceObject.store).getAllShortcutKeyCombinations('core/edit-widgets/previous-region'),
[4605] Fix | Delete
nextShortcut: select(external_wp_keyboardShortcuts_namespaceObject.store).getAllShortcutKeyCombinations('core/edit-widgets/next-region')
[4606] Fix | Delete
}), []);
[4607] Fix | Delete
[4608] Fix | Delete
// Inserter and Sidebars are mutually exclusive
[4609] Fix | Delete
(0,external_wp_element_namespaceObject.useEffect)(() => {
[4610] Fix | Delete
if (hasSidebarEnabled && !isHugeViewport) {
[4611] Fix | Delete
setIsInserterOpened(false);
[4612] Fix | Delete
setIsListViewOpened(false);
[4613] Fix | Delete
}
[4614] Fix | Delete
}, [hasSidebarEnabled, isHugeViewport]);
[4615] Fix | Delete
(0,external_wp_element_namespaceObject.useEffect)(() => {
[4616] Fix | Delete
if ((isInserterOpened || isListViewOpened) && !isHugeViewport) {
[4617] Fix | Delete
closeGeneralSidebar();
[4618] Fix | Delete
}
[4619] Fix | Delete
}, [isInserterOpened, isListViewOpened, isHugeViewport]);
[4620] Fix | Delete
const secondarySidebarLabel = isListViewOpened ? (0,external_wp_i18n_namespaceObject.__)('List View') : (0,external_wp_i18n_namespaceObject.__)('Block Library');
[4621] Fix | Delete
const hasSecondarySidebar = isListViewOpened || isInserterOpened;
[4622] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(interface_skeleton, {
[4623] Fix | Delete
labels: {
[4624] Fix | Delete
...interfaceLabels,
[4625] Fix | Delete
secondarySidebar: secondarySidebarLabel
[4626] Fix | Delete
},
[4627] Fix | Delete
header: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(header, {}),
[4628] Fix | Delete
secondarySidebar: hasSecondarySidebar && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SecondarySidebar, {}),
[4629] Fix | Delete
sidebar: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(complementary_area.Slot, {
[4630] Fix | Delete
scope: "core/edit-widgets"
[4631] Fix | Delete
}),
[4632] Fix | Delete
content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[4633] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WidgetAreasBlockEditorContent, {
[4634] Fix | Delete
blockEditorSettings: blockEditorSettings
[4635] Fix | Delete
})
[4636] Fix | Delete
}),
[4637] Fix | Delete
footer: hasBlockBreadCrumbsEnabled && !isMobileViewport && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
[4638] Fix | Delete
className: "edit-widgets-layout__footer",
[4639] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockBreadcrumb, {
[4640] Fix | Delete
rootLabelText: (0,external_wp_i18n_namespaceObject.__)('Widgets')
[4641] Fix | Delete
})
[4642] Fix | Delete
}),
[4643] Fix | Delete
shortcuts: {
[4644] Fix | Delete
previous: previousShortcut,
[4645] Fix | Delete
next: nextShortcut
[4646] Fix | Delete
}
[4647] Fix | Delete
});
[4648] Fix | Delete
}
[4649] Fix | Delete
/* harmony default export */ const layout_interface = (Interface);
[4650] Fix | Delete
[4651] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/layout/unsaved-changes-warning.js
[4652] Fix | Delete
/**
[4653] Fix | Delete
* WordPress dependencies
[4654] Fix | Delete
*/
[4655] Fix | Delete
[4656] Fix | Delete
[4657] Fix | Delete
[4658] Fix | Delete
[4659] Fix | Delete
/**
[4660] Fix | Delete
* Internal dependencies
[4661] Fix | Delete
*/
[4662] Fix | Delete
[4663] Fix | Delete
[4664] Fix | Delete
/**
[4665] Fix | Delete
* Warns the user if there are unsaved changes before leaving the editor.
[4666] Fix | Delete
*
[4667] Fix | Delete
* This is a duplicate of the component implemented in the editor package.
[4668] Fix | Delete
* Duplicated here as edit-widgets doesn't depend on editor.
[4669] Fix | Delete
*
[4670] Fix | Delete
* @return {Component} The component.
[4671] Fix | Delete
*/
[4672] Fix | Delete
function UnsavedChangesWarning() {
[4673] Fix | Delete
const isDirty = (0,external_wp_data_namespaceObject.useSelect)(select => {
[4674] Fix | Delete
const {
[4675] Fix | Delete
getEditedWidgetAreas
[4676] Fix | Delete
} = select(store_store);
[4677] Fix | Delete
const editedWidgetAreas = getEditedWidgetAreas();
[4678] Fix | Delete
return editedWidgetAreas?.length > 0;
[4679] Fix | Delete
}, []);
[4680] Fix | Delete
(0,external_wp_element_namespaceObject.useEffect)(() => {
[4681] Fix | Delete
/**
[4682] Fix | Delete
* Warns the user if there are unsaved changes before leaving the editor.
[4683] Fix | Delete
*
[4684] Fix | Delete
* @param {Event} event `beforeunload` event.
[4685] Fix | Delete
*
[4686] Fix | Delete
* @return {string | undefined} Warning prompt message, if unsaved changes exist.
[4687] Fix | Delete
*/
[4688] Fix | Delete
const warnIfUnsavedChanges = event => {
[4689] Fix | Delete
if (isDirty) {
[4690] Fix | Delete
event.returnValue = (0,external_wp_i18n_namespaceObject.__)('You have unsaved changes. If you proceed, they will be lost.');
[4691] Fix | Delete
return event.returnValue;
[4692] Fix | Delete
}
[4693] Fix | Delete
};
[4694] Fix | Delete
window.addEventListener('beforeunload', warnIfUnsavedChanges);
[4695] Fix | Delete
return () => {
[4696] Fix | Delete
window.removeEventListener('beforeunload', warnIfUnsavedChanges);
[4697] Fix | Delete
};
[4698] Fix | Delete
}, [isDirty]);
[4699] Fix | Delete
return null;
[4700] Fix | Delete
}
[4701] Fix | Delete
[4702] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/welcome-guide/index.js
[4703] Fix | Delete
/**
[4704] Fix | Delete
* WordPress dependencies
[4705] Fix | Delete
*/
[4706] Fix | Delete
[4707] Fix | Delete
[4708] Fix | Delete
[4709] Fix | Delete
[4710] Fix | Delete
[4711] Fix | Delete
[4712] Fix | Delete
/**
[4713] Fix | Delete
* Internal dependencies
[4714] Fix | Delete
*/
[4715] Fix | Delete
[4716] Fix | Delete
[4717] Fix | Delete
[4718] Fix | Delete
[4719] Fix | Delete
function WelcomeGuide() {
[4720] Fix | Delete
var _widgetAreas$filter$l;
[4721] Fix | Delete
const isActive = (0,external_wp_data_namespaceObject.useSelect)(select => !!select(external_wp_preferences_namespaceObject.store).get('core/edit-widgets', 'welcomeGuide'), []);
[4722] Fix | Delete
const {
[4723] Fix | Delete
toggle
[4724] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_preferences_namespaceObject.store);
[4725] Fix | Delete
const widgetAreas = (0,external_wp_data_namespaceObject.useSelect)(select => select(store_store).getWidgetAreas({
[4726] Fix | Delete
per_page: -1
[4727] Fix | Delete
}), []);
[4728] Fix | Delete
if (!isActive) {
[4729] Fix | Delete
return null;
[4730] Fix | Delete
}
[4731] Fix | Delete
const isEntirelyBlockWidgets = widgetAreas?.every(widgetArea => widgetArea.id === 'wp_inactive_widgets' || widgetArea.widgets.every(widgetId => widgetId.startsWith('block-')));
[4732] Fix | Delete
const numWidgetAreas = (_widgetAreas$filter$l = widgetAreas?.filter(widgetArea => widgetArea.id !== 'wp_inactive_widgets').length) !== null && _widgetAreas$filter$l !== void 0 ? _widgetAreas$filter$l : 0;
[4733] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Guide, {
[4734] Fix | Delete
className: "edit-widgets-welcome-guide",
[4735] Fix | Delete
contentLabel: (0,external_wp_i18n_namespaceObject.__)('Welcome to block Widgets'),
[4736] Fix | Delete
finishButtonText: (0,external_wp_i18n_namespaceObject.__)('Get started'),
[4737] Fix | Delete
onFinish: () => toggle('core/edit-widgets', 'welcomeGuide'),
[4738] Fix | Delete
pages: [{
[4739] Fix | Delete
image: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuideImage, {
[4740] Fix | Delete
nonAnimatedSrc: "https://s.w.org/images/block-editor/welcome-canvas.svg",
[4741] Fix | Delete
animatedSrc: "https://s.w.org/images/block-editor/welcome-canvas.gif"
[4742] Fix | Delete
}),
[4743] Fix | Delete
content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[4744] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h1", {
[4745] Fix | Delete
className: "edit-widgets-welcome-guide__heading",
[4746] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Welcome to block Widgets')
[4747] Fix | Delete
}), isEntirelyBlockWidgets ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[4748] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
[4749] Fix | Delete
className: "edit-widgets-welcome-guide__text",
[4750] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.sprintf)(
[4751] Fix | Delete
// Translators: %s: Number of block areas in the current theme.
[4752] Fix | Delete
(0,external_wp_i18n_namespaceObject._n)('Your theme provides %s “block” area for you to add and edit content. Try adding a search bar, social icons, or other types of blocks here and see how they’ll look on your site.', 'Your theme provides %s different “block” areas for you to add and edit content. Try adding a search bar, social icons, or other types of blocks here and see how they’ll look on your site.', numWidgetAreas), numWidgetAreas)
[4753] Fix | Delete
})
[4754] Fix | Delete
}) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[4755] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
[4756] Fix | Delete
className: "edit-widgets-welcome-guide__text",
[4757] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('You can now add any block to your site’s widget areas. Don’t worry, all of your favorite widgets still work flawlessly.')
[4758] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("p", {
[4759] Fix | Delete
className: "edit-widgets-welcome-guide__text",
[4760] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("strong", {
[4761] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Want to stick with the old widgets?')
[4762] Fix | Delete
}), ' ', /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ExternalLink, {
[4763] Fix | Delete
href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/plugins/classic-widgets/'),
[4764] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Get the Classic Widgets plugin.')
[4765] Fix | Delete
})]
[4766] Fix | Delete
})]
[4767] Fix | Delete
})]
[4768] Fix | Delete
})
[4769] Fix | Delete
}, {
[4770] Fix | Delete
image: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuideImage, {
[4771] Fix | Delete
nonAnimatedSrc: "https://s.w.org/images/block-editor/welcome-editor.svg",
[4772] Fix | Delete
animatedSrc: "https://s.w.org/images/block-editor/welcome-editor.gif"
[4773] Fix | Delete
}),
[4774] Fix | Delete
content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[4775] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h1", {
[4776] Fix | Delete
className: "edit-widgets-welcome-guide__heading",
[4777] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Make each block your own')
[4778] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
[4779] Fix | Delete
className: "edit-widgets-welcome-guide__text",
[4780] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Each block comes with its own set of controls for changing things like color, width, and alignment. These will show and hide automatically when you have a block selected.')
[4781] Fix | Delete
})]
[4782] Fix | Delete
})
[4783] Fix | Delete
}, {
[4784] Fix | Delete
image: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuideImage, {
[4785] Fix | Delete
nonAnimatedSrc: "https://s.w.org/images/block-editor/welcome-library.svg",
[4786] Fix | Delete
animatedSrc: "https://s.w.org/images/block-editor/welcome-library.gif"
[4787] Fix | Delete
}),
[4788] Fix | Delete
content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[4789] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h1", {
[4790] Fix | Delete
className: "edit-widgets-welcome-guide__heading",
[4791] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Get to know the block library')
[4792] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
[4793] Fix | Delete
className: "edit-widgets-welcome-guide__text",
[4794] Fix | Delete
children: (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.__)('All of the blocks available to you live in the block library. You’ll find it wherever you see the <InserterIconImage /> icon.'), {
[4795] Fix | Delete
InserterIconImage: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
[4796] Fix | Delete
className: "edit-widgets-welcome-guide__inserter-icon",
[4797] Fix | Delete
alt: (0,external_wp_i18n_namespaceObject.__)('inserter'),
[4798] Fix | Delete
src: "data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='18' height='18' rx='2' fill='%231E1E1E'/%3E%3Cpath d='M9.22727 4V14M4 8.77273H14' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E%0A"
[4799] Fix | Delete
})
[4800] Fix | Delete
})
[4801] Fix | Delete
})]
[4802] Fix | Delete
})
[4803] Fix | Delete
}, {
[4804] Fix | Delete
image: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuideImage, {
[4805] Fix | Delete
nonAnimatedSrc: "https://s.w.org/images/block-editor/welcome-documentation.svg",
[4806] Fix | Delete
animatedSrc: "https://s.w.org/images/block-editor/welcome-documentation.gif"
[4807] Fix | Delete
}),
[4808] Fix | Delete
content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[4809] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h1", {
[4810] Fix | Delete
className: "edit-widgets-welcome-guide__heading",
[4811] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Learn how to use the block editor')
[4812] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("p", {
[4813] Fix | Delete
className: "edit-widgets-welcome-guide__text",
[4814] Fix | Delete
children: [(0,external_wp_i18n_namespaceObject.__)('New to the block editor? Want to learn more about using it? '), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ExternalLink, {
[4815] Fix | Delete
href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/documentation/article/wordpress-block-editor/'),
[4816] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)("Here's a detailed guide.")
[4817] Fix | Delete
})]
[4818] Fix | Delete
})]
[4819] Fix | Delete
})
[4820] Fix | Delete
}]
[4821] Fix | Delete
});
[4822] Fix | Delete
}
[4823] Fix | Delete
function WelcomeGuideImage({
[4824] Fix | Delete
nonAnimatedSrc,
[4825] Fix | Delete
animatedSrc
[4826] Fix | Delete
}) {
[4827] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("picture", {
[4828] Fix | Delete
className: "edit-widgets-welcome-guide__image",
[4829] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("source", {
[4830] Fix | Delete
srcSet: nonAnimatedSrc,
[4831] Fix | Delete
media: "(prefers-reduced-motion: reduce)"
[4832] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("img", {
[4833] Fix | Delete
src: animatedSrc,
[4834] Fix | Delete
width: "312",
[4835] Fix | Delete
height: "240",
[4836] Fix | Delete
alt: ""
[4837] Fix | Delete
})]
[4838] Fix | Delete
});
[4839] Fix | Delete
}
[4840] Fix | Delete
[4841] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/layout/index.js
[4842] Fix | Delete
/**
[4843] Fix | Delete
* WordPress dependencies
[4844] Fix | Delete
*/
[4845] Fix | Delete
[4846] Fix | Delete
[4847] Fix | Delete
[4848] Fix | Delete
[4849] Fix | Delete
[4850] Fix | Delete
/**
[4851] Fix | Delete
* Internal dependencies
[4852] Fix | Delete
*/
[4853] Fix | Delete
[4854] Fix | Delete
[4855] Fix | Delete
[4856] Fix | Delete
[4857] Fix | Delete
[4858] Fix | Delete
[4859] Fix | Delete
[4860] Fix | Delete
[4861] Fix | Delete
function Layout({
[4862] Fix | Delete
blockEditorSettings
[4863] Fix | Delete
}) {
[4864] Fix | Delete
const {
[4865] Fix | Delete
createErrorNotice
[4866] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
[4867] Fix | Delete
function onPluginAreaError(name) {
[4868] Fix | Delete
createErrorNotice((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: plugin name */
[4869] Fix | Delete
(0,external_wp_i18n_namespaceObject.__)('The "%s" plugin has encountered an error and cannot be rendered.'), name));
[4870] Fix | Delete
}
[4871] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ErrorBoundary, {
[4872] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(WidgetAreasBlockEditorProvider, {
[4873] Fix | Delete
blockEditorSettings: blockEditorSettings,
[4874] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(layout_interface, {
[4875] Fix | Delete
blockEditorSettings: blockEditorSettings
[4876] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Sidebar, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_plugins_namespaceObject.PluginArea, {
[4877] Fix | Delete
onError: onPluginAreaError
[4878] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(UnsavedChangesWarning, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuide, {})]
[4879] Fix | Delete
})
[4880] Fix | Delete
});
[4881] Fix | Delete
}
[4882] Fix | Delete
/* harmony default export */ const layout = (Layout);
[4883] Fix | Delete
[4884] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/index.js
[4885] Fix | Delete
/**
[4886] Fix | Delete
* WordPress dependencies
[4887] Fix | Delete
*/
[4888] Fix | Delete
[4889] Fix | Delete
[4890] Fix | Delete
[4891] Fix | Delete
[4892] Fix | Delete
[4893] Fix | Delete
[4894] Fix | Delete
[4895] Fix | Delete
[4896] Fix | Delete
[4897] Fix | Delete
/**
[4898] Fix | Delete
* Internal dependencies
[4899] Fix | Delete
*/
[4900] Fix | Delete
[4901] Fix | Delete
[4902] Fix | Delete
[4903] Fix | Delete
[4904] Fix | Delete
[4905] Fix | Delete
[4906] Fix | Delete
const disabledBlocks = ['core/more', 'core/freeform', 'core/template-part', ...(ALLOW_REUSABLE_BLOCKS ? [] : ['core/block'])];
[4907] Fix | Delete
[4908] Fix | Delete
/**
[4909] Fix | Delete
* Initializes the block editor in the widgets screen.
[4910] Fix | Delete
*
[4911] Fix | Delete
* @param {string} id ID of the root element to render the screen in.
[4912] Fix | Delete
* @param {Object} settings Block editor settings.
[4913] Fix | Delete
*/
[4914] Fix | Delete
function initializeEditor(id, settings) {
[4915] Fix | Delete
const target = document.getElementById(id);
[4916] Fix | Delete
const root = (0,external_wp_element_namespaceObject.createRoot)(target);
[4917] Fix | Delete
const coreBlocks = (0,external_wp_blockLibrary_namespaceObject.__experimentalGetCoreBlocks)().filter(block => {
[4918] Fix | Delete
return !(disabledBlocks.includes(block.name) || block.name.startsWith('core/post') || block.name.startsWith('core/query') || block.name.startsWith('core/site') || block.name.startsWith('core/navigation'));
[4919] Fix | Delete
});
[4920] Fix | Delete
(0,external_wp_data_namespaceObject.dispatch)(external_wp_preferences_namespaceObject.store).setDefaults('core/edit-widgets', {
[4921] Fix | Delete
fixedToolbar: false,
[4922] Fix | Delete
welcomeGuide: true,
[4923] Fix | Delete
showBlockBreadcrumbs: true,
[4924] Fix | Delete
themeStyles: true
[4925] Fix | Delete
});
[4926] Fix | Delete
(0,external_wp_data_namespaceObject.dispatch)(external_wp_blocks_namespaceObject.store).reapplyBlockTypeFilters();
[4927] Fix | Delete
(0,external_wp_blockLibrary_namespaceObject.registerCoreBlocks)(coreBlocks);
[4928] Fix | Delete
(0,external_wp_widgets_namespaceObject.registerLegacyWidgetBlock)();
[4929] Fix | Delete
if (false) {}
[4930] Fix | Delete
(0,external_wp_widgets_namespaceObject.registerLegacyWidgetVariations)(settings);
[4931] Fix | Delete
registerBlock(widget_area_namespaceObject);
[4932] Fix | Delete
(0,external_wp_widgets_namespaceObject.registerWidgetGroupBlock)();
[4933] Fix | Delete
settings.__experimentalFetchLinkSuggestions = (search, searchOptions) => (0,external_wp_coreData_namespaceObject.__experimentalFetchLinkSuggestions)(search, searchOptions, settings);
[4934] Fix | Delete
[4935] Fix | Delete
// As we are unregistering `core/freeform` to avoid the Classic block, we must
[4936] Fix | Delete
// replace it with something as the default freeform content handler. Failure to
[4937] Fix | Delete
// do this will result in errors in the default block parser.
[4938] Fix | Delete
// see: https://github.com/WordPress/gutenberg/issues/33097
[4939] Fix | Delete
(0,external_wp_blocks_namespaceObject.setFreeformContentHandlerName)('core/html');
[4940] Fix | Delete
root.render( /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(layout, {
[4941] Fix | Delete
blockEditorSettings: settings
[4942] Fix | Delete
}));
[4943] Fix | Delete
return root;
[4944] Fix | Delete
}
[4945] Fix | Delete
[4946] Fix | Delete
/**
[4947] Fix | Delete
* Compatibility export under the old `initialize` name.
[4948] Fix | Delete
*/
[4949] Fix | Delete
const initialize = initializeEditor;
[4950] Fix | Delete
function reinitializeEditor() {
[4951] Fix | Delete
external_wp_deprecated_default()('wp.editWidgets.reinitializeEditor', {
[4952] Fix | Delete
since: '6.2',
[4953] Fix | Delete
version: '6.3'
[4954] Fix | Delete
});
[4955] Fix | Delete
}
[4956] Fix | Delete
[4957] Fix | Delete
/**
[4958] Fix | Delete
* Function to register an individual block.
[4959] Fix | Delete
*
[4960] Fix | Delete
* @param {Object} block The block to be registered.
[4961] Fix | Delete
*/
[4962] Fix | Delete
const registerBlock = block => {
[4963] Fix | Delete
if (!block) {
[4964] Fix | Delete
return;
[4965] Fix | Delete
}
[4966] Fix | Delete
const {
[4967] Fix | Delete
metadata,
[4968] Fix | Delete
settings,
[4969] Fix | Delete
name
[4970] Fix | Delete
} = block;
[4971] Fix | Delete
if (metadata) {
[4972] Fix | Delete
(0,external_wp_blocks_namespaceObject.unstable__bootstrapServerSideBlockDefinitions)({
[4973] Fix | Delete
[name]: metadata
[4974] Fix | Delete
});
[4975] Fix | Delete
}
[4976] Fix | Delete
(0,external_wp_blocks_namespaceObject.registerBlockType)(name, settings);
[4977] Fix | Delete
};
[4978] Fix | Delete
[4979] Fix | Delete
[4980] Fix | Delete
(window.wp = window.wp || {}).editWidgets = __webpack_exports__;
[4981] Fix | Delete
/******/ })()
[4982] Fix | Delete
;
[4983] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function