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: widgets.js
[1500] Fix | Delete
[1501] Fix | Delete
[1502] Fix | Delete
const {
[1503] Fix | Delete
name: widget_group_name
[1504] Fix | Delete
} = widget_group_metadata;
[1505] Fix | Delete
[1506] Fix | Delete
const widget_group_settings = {
[1507] Fix | Delete
title: (0,external_wp_i18n_namespaceObject.__)('Widget Group'),
[1508] Fix | Delete
description: (0,external_wp_i18n_namespaceObject.__)('Create a classic widget layout with a title that’s styled by your theme for your widget areas.'),
[1509] Fix | Delete
icon: library_group,
[1510] Fix | Delete
__experimentalLabel: ({
[1511] Fix | Delete
name: label
[1512] Fix | Delete
}) => label,
[1513] Fix | Delete
edit: edit_Edit,
[1514] Fix | Delete
save: save,
[1515] Fix | Delete
transforms: {
[1516] Fix | Delete
from: [{
[1517] Fix | Delete
type: 'block',
[1518] Fix | Delete
isMultiBlock: true,
[1519] Fix | Delete
blocks: ['*'],
[1520] Fix | Delete
isMatch(attributes, blocks) {
[1521] Fix | Delete
// Avoid transforming existing `widget-group` blocks.
[1522] Fix | Delete
return !blocks.some(block => block.name === 'core/widget-group');
[1523] Fix | Delete
},
[1524] Fix | Delete
__experimentalConvert(blocks) {
[1525] Fix | Delete
// Put the selected blocks inside the new Widget Group's innerBlocks.
[1526] Fix | Delete
let innerBlocks = [...blocks.map(block => {
[1527] Fix | Delete
return (0,external_wp_blocks_namespaceObject.createBlock)(block.name, block.attributes, block.innerBlocks);
[1528] Fix | Delete
})];
[1529] Fix | Delete
[1530] Fix | Delete
// If the first block is a heading then assume this is intended
[1531] Fix | Delete
// to be the Widget's "title".
[1532] Fix | Delete
const firstHeadingBlock = innerBlocks[0].name === 'core/heading' ? innerBlocks[0] : null;
[1533] Fix | Delete
[1534] Fix | Delete
// Remove the first heading block as we're copying
[1535] Fix | Delete
// it's content into the Widget Group's title attribute.
[1536] Fix | Delete
innerBlocks = innerBlocks.filter(block => block !== firstHeadingBlock);
[1537] Fix | Delete
return (0,external_wp_blocks_namespaceObject.createBlock)('core/widget-group', {
[1538] Fix | Delete
...(firstHeadingBlock && {
[1539] Fix | Delete
title: firstHeadingBlock.attributes.content
[1540] Fix | Delete
})
[1541] Fix | Delete
}, innerBlocks);
[1542] Fix | Delete
}
[1543] Fix | Delete
}]
[1544] Fix | Delete
},
[1545] Fix | Delete
deprecated: deprecated
[1546] Fix | Delete
};
[1547] Fix | Delete
[1548] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/move-to.js
[1549] Fix | Delete
/**
[1550] Fix | Delete
* WordPress dependencies
[1551] Fix | Delete
*/
[1552] Fix | Delete
[1553] Fix | Delete
[1554] Fix | Delete
const moveTo = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[1555] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[1556] Fix | Delete
viewBox: "0 0 24 24",
[1557] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[1558] Fix | Delete
d: "M19.75 9c0-1.257-.565-2.197-1.39-2.858-.797-.64-1.827-1.017-2.815-1.247-1.802-.42-3.703-.403-4.383-.396L11 4.5V6l.177-.001c.696-.006 2.416-.02 4.028.356.887.207 1.67.518 2.216.957.52.416.829.945.829 1.688 0 .592-.167.966-.407 1.23-.255.281-.656.508-1.236.674-1.19.34-2.82.346-4.607.346h-.077c-1.692 0-3.527 0-4.942.404-.732.209-1.424.545-1.935 1.108-.526.579-.796 1.33-.796 2.238 0 1.257.565 2.197 1.39 2.858.797.64 1.827 1.017 2.815 1.247 1.802.42 3.703.403 4.383.396L13 19.5h.714V22L18 18.5 13.714 15v3H13l-.177.001c-.696.006-2.416.02-4.028-.356-.887-.207-1.67-.518-2.216-.957-.52-.416-.829-.945-.829-1.688 0-.592.167-.966.407-1.23.255-.281.656-.508 1.237-.674 1.189-.34 2.819-.346 4.606-.346h.077c1.692 0 3.527 0 4.941-.404.732-.209 1.425-.545 1.936-1.108.526-.579.796-1.33.796-2.238z"
[1559] Fix | Delete
})
[1560] Fix | Delete
});
[1561] Fix | Delete
/* harmony default export */ const move_to = (moveTo);
[1562] Fix | Delete
[1563] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/widgets/build-module/components/move-to-widget-area/index.js
[1564] Fix | Delete
/**
[1565] Fix | Delete
* WordPress dependencies
[1566] Fix | Delete
*/
[1567] Fix | Delete
[1568] Fix | Delete
[1569] Fix | Delete
[1570] Fix | Delete
[1571] Fix | Delete
function MoveToWidgetArea({
[1572] Fix | Delete
currentWidgetAreaId,
[1573] Fix | Delete
widgetAreas,
[1574] Fix | Delete
onSelect
[1575] Fix | Delete
}) {
[1576] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
[1577] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarItem, {
[1578] Fix | Delete
children: toggleProps => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropdownMenu, {
[1579] Fix | Delete
icon: move_to,
[1580] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Move to widget area'),
[1581] Fix | Delete
toggleProps: toggleProps,
[1582] Fix | Delete
children: ({
[1583] Fix | Delete
onClose
[1584] Fix | Delete
}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
[1585] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Move to'),
[1586] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItemsChoice, {
[1587] Fix | Delete
choices: widgetAreas.map(widgetArea => ({
[1588] Fix | Delete
value: widgetArea.id,
[1589] Fix | Delete
label: widgetArea.name,
[1590] Fix | Delete
info: widgetArea.description
[1591] Fix | Delete
})),
[1592] Fix | Delete
value: currentWidgetAreaId,
[1593] Fix | Delete
onSelect: value => {
[1594] Fix | Delete
onSelect(value);
[1595] Fix | Delete
onClose();
[1596] Fix | Delete
}
[1597] Fix | Delete
})
[1598] Fix | Delete
})
[1599] Fix | Delete
})
[1600] Fix | Delete
})
[1601] Fix | Delete
});
[1602] Fix | Delete
}
[1603] Fix | Delete
[1604] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/widgets/build-module/components/index.js
[1605] Fix | Delete
[1606] Fix | Delete
[1607] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/widgets/build-module/utils.js
[1608] Fix | Delete
// @ts-check
[1609] Fix | Delete
[1610] Fix | Delete
/**
[1611] Fix | Delete
* Get the internal widget id from block.
[1612] Fix | Delete
*
[1613] Fix | Delete
* @typedef {Object} Attributes
[1614] Fix | Delete
* @property {string} __internalWidgetId The internal widget id.
[1615] Fix | Delete
* @typedef {Object} Block
[1616] Fix | Delete
* @property {Attributes} attributes The attributes of the block.
[1617] Fix | Delete
*
[1618] Fix | Delete
* @param {Block} block The block.
[1619] Fix | Delete
* @return {string} The internal widget id.
[1620] Fix | Delete
*/
[1621] Fix | Delete
function getWidgetIdFromBlock(block) {
[1622] Fix | Delete
return block.attributes.__internalWidgetId;
[1623] Fix | Delete
}
[1624] Fix | Delete
[1625] Fix | Delete
/**
[1626] Fix | Delete
* Add internal widget id to block's attributes.
[1627] Fix | Delete
*
[1628] Fix | Delete
* @param {Block} block The block.
[1629] Fix | Delete
* @param {string} widgetId The widget id.
[1630] Fix | Delete
* @return {Block} The updated block.
[1631] Fix | Delete
*/
[1632] Fix | Delete
function addWidgetIdToBlock(block, widgetId) {
[1633] Fix | Delete
return {
[1634] Fix | Delete
...block,
[1635] Fix | Delete
attributes: {
[1636] Fix | Delete
...(block.attributes || {}),
[1637] Fix | Delete
__internalWidgetId: widgetId
[1638] Fix | Delete
}
[1639] Fix | Delete
};
[1640] Fix | Delete
}
[1641] Fix | Delete
[1642] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/widgets/build-module/register-legacy-widget-variations.js
[1643] Fix | Delete
/**
[1644] Fix | Delete
* WordPress dependencies
[1645] Fix | Delete
*/
[1646] Fix | Delete
[1647] Fix | Delete
[1648] Fix | Delete
[1649] Fix | Delete
function registerLegacyWidgetVariations(settings) {
[1650] Fix | Delete
const unsubscribe = (0,external_wp_data_namespaceObject.subscribe)(() => {
[1651] Fix | Delete
var _settings$widgetTypes;
[1652] Fix | Delete
const hiddenIds = (_settings$widgetTypes = settings?.widgetTypesToHideFromLegacyWidgetBlock) !== null && _settings$widgetTypes !== void 0 ? _settings$widgetTypes : [];
[1653] Fix | Delete
const widgetTypes = (0,external_wp_data_namespaceObject.select)(external_wp_coreData_namespaceObject.store).getWidgetTypes({
[1654] Fix | Delete
per_page: -1
[1655] Fix | Delete
})?.filter(widgetType => !hiddenIds.includes(widgetType.id));
[1656] Fix | Delete
if (widgetTypes) {
[1657] Fix | Delete
unsubscribe();
[1658] Fix | Delete
(0,external_wp_data_namespaceObject.dispatch)(external_wp_blocks_namespaceObject.store).addBlockVariations('core/legacy-widget', widgetTypes.map(widgetType => ({
[1659] Fix | Delete
name: widgetType.id,
[1660] Fix | Delete
title: widgetType.name,
[1661] Fix | Delete
description: widgetType.description,
[1662] Fix | Delete
attributes: widgetType.is_multi ? {
[1663] Fix | Delete
idBase: widgetType.id,
[1664] Fix | Delete
instance: {}
[1665] Fix | Delete
} : {
[1666] Fix | Delete
id: widgetType.id
[1667] Fix | Delete
}
[1668] Fix | Delete
})));
[1669] Fix | Delete
}
[1670] Fix | Delete
});
[1671] Fix | Delete
}
[1672] Fix | Delete
[1673] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/widgets/build-module/index.js
[1674] Fix | Delete
/**
[1675] Fix | Delete
* WordPress dependencies
[1676] Fix | Delete
*/
[1677] Fix | Delete
[1678] Fix | Delete
[1679] Fix | Delete
/**
[1680] Fix | Delete
* Internal dependencies
[1681] Fix | Delete
*/
[1682] Fix | Delete
[1683] Fix | Delete
[1684] Fix | Delete
[1685] Fix | Delete
[1686] Fix | Delete
[1687] Fix | Delete
/**
[1688] Fix | Delete
* Registers the Legacy Widget block.
[1689] Fix | Delete
*
[1690] Fix | Delete
* Note that for the block to be useful, any scripts required by a widget must
[1691] Fix | Delete
* be loaded into the page.
[1692] Fix | Delete
*
[1693] Fix | Delete
* @param {Object} supports Block support settings.
[1694] Fix | Delete
* @see https://developer.wordpress.org/block-editor/how-to-guides/widgets/legacy-widget-block/
[1695] Fix | Delete
*/
[1696] Fix | Delete
function registerLegacyWidgetBlock(supports = {}) {
[1697] Fix | Delete
const {
[1698] Fix | Delete
metadata,
[1699] Fix | Delete
settings,
[1700] Fix | Delete
name
[1701] Fix | Delete
} = legacy_widget_namespaceObject;
[1702] Fix | Delete
(0,external_wp_blocks_namespaceObject.registerBlockType)({
[1703] Fix | Delete
name,
[1704] Fix | Delete
...metadata
[1705] Fix | Delete
}, {
[1706] Fix | Delete
...settings,
[1707] Fix | Delete
supports: {
[1708] Fix | Delete
...settings.supports,
[1709] Fix | Delete
...supports
[1710] Fix | Delete
}
[1711] Fix | Delete
});
[1712] Fix | Delete
}
[1713] Fix | Delete
[1714] Fix | Delete
/**
[1715] Fix | Delete
* Registers the Widget Group block.
[1716] Fix | Delete
*
[1717] Fix | Delete
* @param {Object} supports Block support settings.
[1718] Fix | Delete
*/
[1719] Fix | Delete
function registerWidgetGroupBlock(supports = {}) {
[1720] Fix | Delete
const {
[1721] Fix | Delete
metadata,
[1722] Fix | Delete
settings,
[1723] Fix | Delete
name
[1724] Fix | Delete
} = widget_group_namespaceObject;
[1725] Fix | Delete
(0,external_wp_blocks_namespaceObject.registerBlockType)({
[1726] Fix | Delete
name,
[1727] Fix | Delete
...metadata
[1728] Fix | Delete
}, {
[1729] Fix | Delete
...settings,
[1730] Fix | Delete
supports: {
[1731] Fix | Delete
...settings.supports,
[1732] Fix | Delete
...supports
[1733] Fix | Delete
}
[1734] Fix | Delete
});
[1735] Fix | Delete
}
[1736] Fix | Delete
[1737] Fix | Delete
[1738] Fix | Delete
(window.wp = window.wp || {}).widgets = __webpack_exports__;
[1739] Fix | Delete
/******/ })()
[1740] Fix | Delete
;
[1741] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function