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: patterns.js
const {
[1500] Fix | Delete
getBlockAttributes,
[1501] Fix | Delete
getBlockParentsByBlockName
[1502] Fix | Delete
} = select(external_wp_blockEditor_namespaceObject.store);
[1503] Fix | Delete
const [patternClientId] = getBlockParentsByBlockName(props.clientId, 'core/block', true);
[1504] Fix | Delete
if (!patternClientId) {
[1505] Fix | Delete
return;
[1506] Fix | Delete
}
[1507] Fix | Delete
const overrides = getBlockAttributes(patternClientId)[CONTENT];
[1508] Fix | Delete
if (!overrides) {
[1509] Fix | Delete
return;
[1510] Fix | Delete
}
[1511] Fix | Delete
return overrides.hasOwnProperty(name);
[1512] Fix | Delete
}, [props.clientId, name]);
[1513] Fix | Delete
function onClick() {
[1514] Fix | Delete
const {
[1515] Fix | Delete
getBlockAttributes,
[1516] Fix | Delete
getBlockParentsByBlockName
[1517] Fix | Delete
} = registry.select(external_wp_blockEditor_namespaceObject.store);
[1518] Fix | Delete
const [patternClientId] = getBlockParentsByBlockName(props.clientId, 'core/block', true);
[1519] Fix | Delete
if (!patternClientId) {
[1520] Fix | Delete
return;
[1521] Fix | Delete
}
[1522] Fix | Delete
const overrides = getBlockAttributes(patternClientId)[CONTENT];
[1523] Fix | Delete
if (!overrides.hasOwnProperty(name)) {
[1524] Fix | Delete
return;
[1525] Fix | Delete
}
[1526] Fix | Delete
const {
[1527] Fix | Delete
updateBlockAttributes,
[1528] Fix | Delete
__unstableMarkLastChangeAsPersistent
[1529] Fix | Delete
} = registry.dispatch(external_wp_blockEditor_namespaceObject.store);
[1530] Fix | Delete
__unstableMarkLastChangeAsPersistent();
[1531] Fix | Delete
let newOverrides = {
[1532] Fix | Delete
...overrides
[1533] Fix | Delete
};
[1534] Fix | Delete
delete newOverrides[name];
[1535] Fix | Delete
if (!Object.keys(newOverrides).length) {
[1536] Fix | Delete
newOverrides = undefined;
[1537] Fix | Delete
}
[1538] Fix | Delete
updateBlockAttributes(patternClientId, {
[1539] Fix | Delete
[CONTENT]: newOverrides
[1540] Fix | Delete
});
[1541] Fix | Delete
}
[1542] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__unstableBlockToolbarLastItem, {
[1543] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
[1544] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
[1545] Fix | Delete
onClick: onClick,
[1546] Fix | Delete
disabled: !isOverriden,
[1547] Fix | Delete
__experimentalIsFocusable: true,
[1548] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Reset')
[1549] Fix | Delete
})
[1550] Fix | Delete
})
[1551] Fix | Delete
});
[1552] Fix | Delete
}
[1553] Fix | Delete
[1554] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/copy.js
[1555] Fix | Delete
/**
[1556] Fix | Delete
* WordPress dependencies
[1557] Fix | Delete
*/
[1558] Fix | Delete
[1559] Fix | Delete
[1560] Fix | Delete
const copy = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[1561] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[1562] Fix | Delete
viewBox: "0 0 24 24",
[1563] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[1564] Fix | Delete
fillRule: "evenodd",
[1565] Fix | Delete
clipRule: "evenodd",
[1566] Fix | Delete
d: "M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z"
[1567] Fix | Delete
})
[1568] Fix | Delete
});
[1569] Fix | Delete
/* harmony default export */ const library_copy = (copy);
[1570] Fix | Delete
[1571] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/patterns/build-module/components/pattern-overrides-block-controls.js
[1572] Fix | Delete
/**
[1573] Fix | Delete
* WordPress dependencies
[1574] Fix | Delete
*/
[1575] Fix | Delete
[1576] Fix | Delete
[1577] Fix | Delete
[1578] Fix | Delete
[1579] Fix | Delete
[1580] Fix | Delete
[1581] Fix | Delete
[1582] Fix | Delete
[1583] Fix | Delete
/**
[1584] Fix | Delete
* Internal dependencies
[1585] Fix | Delete
*/
[1586] Fix | Delete
[1587] Fix | Delete
[1588] Fix | Delete
[1589] Fix | Delete
[1590] Fix | Delete
const {
[1591] Fix | Delete
useBlockDisplayTitle
[1592] Fix | Delete
} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
[1593] Fix | Delete
function PatternOverridesToolbarIndicator({
[1594] Fix | Delete
clientIds
[1595] Fix | Delete
}) {
[1596] Fix | Delete
const isSingleBlockSelected = clientIds.length === 1;
[1597] Fix | Delete
const {
[1598] Fix | Delete
icon,
[1599] Fix | Delete
firstBlockName
[1600] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
[1601] Fix | Delete
const {
[1602] Fix | Delete
getBlockAttributes,
[1603] Fix | Delete
getBlockNamesByClientId
[1604] Fix | Delete
} = select(external_wp_blockEditor_namespaceObject.store);
[1605] Fix | Delete
const {
[1606] Fix | Delete
getBlockType,
[1607] Fix | Delete
getActiveBlockVariation
[1608] Fix | Delete
} = select(external_wp_blocks_namespaceObject.store);
[1609] Fix | Delete
const blockTypeNames = getBlockNamesByClientId(clientIds);
[1610] Fix | Delete
const _firstBlockTypeName = blockTypeNames[0];
[1611] Fix | Delete
const firstBlockType = getBlockType(_firstBlockTypeName);
[1612] Fix | Delete
let _icon;
[1613] Fix | Delete
if (isSingleBlockSelected) {
[1614] Fix | Delete
const match = getActiveBlockVariation(_firstBlockTypeName, getBlockAttributes(clientIds[0]));
[1615] Fix | Delete
// Take into account active block variations.
[1616] Fix | Delete
_icon = match?.icon || firstBlockType.icon;
[1617] Fix | Delete
} else {
[1618] Fix | Delete
const isSelectionOfSameType = new Set(blockTypeNames).size === 1;
[1619] Fix | Delete
// When selection consists of blocks of multiple types, display an
[1620] Fix | Delete
// appropriate icon to communicate the non-uniformity.
[1621] Fix | Delete
_icon = isSelectionOfSameType ? firstBlockType.icon : library_copy;
[1622] Fix | Delete
}
[1623] Fix | Delete
return {
[1624] Fix | Delete
icon: _icon,
[1625] Fix | Delete
firstBlockName: getBlockAttributes(clientIds[0]).metadata.name
[1626] Fix | Delete
};
[1627] Fix | Delete
}, [clientIds, isSingleBlockSelected]);
[1628] Fix | Delete
const firstBlockTitle = useBlockDisplayTitle({
[1629] Fix | Delete
clientId: clientIds[0],
[1630] Fix | Delete
maximumLength: 35
[1631] Fix | Delete
});
[1632] Fix | Delete
const blockDescription = isSingleBlockSelected ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %1s: The block type's name; %2s: The block's user-provided name (the same as the override name). */
[1633] Fix | Delete
(0,external_wp_i18n_namespaceObject.__)('This %1$s is editable using the "%2$s" override.'), firstBlockTitle.toLowerCase(), firstBlockName) : (0,external_wp_i18n_namespaceObject.__)('These blocks are editable using overrides.');
[1634] Fix | Delete
const descriptionId = (0,external_wp_element_namespaceObject.useId)();
[1635] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarItem, {
[1636] Fix | Delete
children: toggleProps => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropdownMenu, {
[1637] Fix | Delete
className: "patterns-pattern-overrides-toolbar-indicator",
[1638] Fix | Delete
label: firstBlockTitle,
[1639] Fix | Delete
popoverProps: {
[1640] Fix | Delete
placement: 'bottom-start',
[1641] Fix | Delete
className: 'patterns-pattern-overrides-toolbar-indicator__popover'
[1642] Fix | Delete
},
[1643] Fix | Delete
icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[1644] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockIcon, {
[1645] Fix | Delete
icon: icon,
[1646] Fix | Delete
className: "patterns-pattern-overrides-toolbar-indicator-icon",
[1647] Fix | Delete
showColors: true
[1648] Fix | Delete
})
[1649] Fix | Delete
}),
[1650] Fix | Delete
toggleProps: {
[1651] Fix | Delete
describedBy: blockDescription,
[1652] Fix | Delete
...toggleProps
[1653] Fix | Delete
},
[1654] Fix | Delete
menuProps: {
[1655] Fix | Delete
orientation: 'both',
[1656] Fix | Delete
'aria-describedby': descriptionId
[1657] Fix | Delete
},
[1658] Fix | Delete
children: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
[1659] Fix | Delete
id: descriptionId,
[1660] Fix | Delete
children: blockDescription
[1661] Fix | Delete
})
[1662] Fix | Delete
})
[1663] Fix | Delete
});
[1664] Fix | Delete
}
[1665] Fix | Delete
function PatternOverridesBlockControls() {
[1666] Fix | Delete
const {
[1667] Fix | Delete
clientIds,
[1668] Fix | Delete
hasPatternOverrides,
[1669] Fix | Delete
hasParentPattern
[1670] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
[1671] Fix | Delete
const {
[1672] Fix | Delete
getBlockAttributes,
[1673] Fix | Delete
getSelectedBlockClientIds,
[1674] Fix | Delete
getBlockParentsByBlockName
[1675] Fix | Delete
} = select(external_wp_blockEditor_namespaceObject.store);
[1676] Fix | Delete
const selectedClientIds = getSelectedBlockClientIds();
[1677] Fix | Delete
const _hasPatternOverrides = selectedClientIds.every(clientId => {
[1678] Fix | Delete
var _getBlockAttributes$m;
[1679] Fix | Delete
return Object.values((_getBlockAttributes$m = getBlockAttributes(clientId)?.metadata?.bindings) !== null && _getBlockAttributes$m !== void 0 ? _getBlockAttributes$m : {}).some(binding => binding?.source === PATTERN_OVERRIDES_BINDING_SOURCE);
[1680] Fix | Delete
});
[1681] Fix | Delete
const _hasParentPattern = selectedClientIds.every(clientId => getBlockParentsByBlockName(clientId, 'core/block', true).length > 0);
[1682] Fix | Delete
return {
[1683] Fix | Delete
clientIds: selectedClientIds,
[1684] Fix | Delete
hasPatternOverrides: _hasPatternOverrides,
[1685] Fix | Delete
hasParentPattern: _hasParentPattern
[1686] Fix | Delete
};
[1687] Fix | Delete
}, []);
[1688] Fix | Delete
return hasPatternOverrides && hasParentPattern ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
[1689] Fix | Delete
group: "parent",
[1690] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PatternOverridesToolbarIndicator, {
[1691] Fix | Delete
clientIds: clientIds
[1692] Fix | Delete
})
[1693] Fix | Delete
}) : null;
[1694] Fix | Delete
}
[1695] Fix | Delete
[1696] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/patterns/build-module/private-apis.js
[1697] Fix | Delete
/**
[1698] Fix | Delete
* Internal dependencies
[1699] Fix | Delete
*/
[1700] Fix | Delete
[1701] Fix | Delete
[1702] Fix | Delete
[1703] Fix | Delete
[1704] Fix | Delete
[1705] Fix | Delete
[1706] Fix | Delete
[1707] Fix | Delete
[1708] Fix | Delete
[1709] Fix | Delete
[1710] Fix | Delete
[1711] Fix | Delete
[1712] Fix | Delete
[1713] Fix | Delete
const privateApis = {};
[1714] Fix | Delete
lock(privateApis, {
[1715] Fix | Delete
OverridesPanel: OverridesPanel,
[1716] Fix | Delete
CreatePatternModal: CreatePatternModal,
[1717] Fix | Delete
CreatePatternModalContents: CreatePatternModalContents,
[1718] Fix | Delete
DuplicatePatternModal: DuplicatePatternModal,
[1719] Fix | Delete
isOverridableBlock: isOverridableBlock,
[1720] Fix | Delete
hasOverridableBlocks: hasOverridableBlocks,
[1721] Fix | Delete
useDuplicatePatternProps: useDuplicatePatternProps,
[1722] Fix | Delete
RenamePatternModal: RenamePatternModal,
[1723] Fix | Delete
PatternsMenuItems: PatternsMenuItems,
[1724] Fix | Delete
RenamePatternCategoryModal: RenamePatternCategoryModal,
[1725] Fix | Delete
PatternOverridesControls: pattern_overrides_controls,
[1726] Fix | Delete
ResetOverridesControl: ResetOverridesControl,
[1727] Fix | Delete
PatternOverridesBlockControls: PatternOverridesBlockControls,
[1728] Fix | Delete
useAddPatternCategory: useAddPatternCategory,
[1729] Fix | Delete
PATTERN_TYPES: PATTERN_TYPES,
[1730] Fix | Delete
PATTERN_DEFAULT_CATEGORY: PATTERN_DEFAULT_CATEGORY,
[1731] Fix | Delete
PATTERN_USER_CATEGORY: PATTERN_USER_CATEGORY,
[1732] Fix | Delete
EXCLUDED_PATTERN_SOURCES: EXCLUDED_PATTERN_SOURCES,
[1733] Fix | Delete
PATTERN_SYNC_TYPES: PATTERN_SYNC_TYPES,
[1734] Fix | Delete
PARTIAL_SYNCING_SUPPORTED_BLOCKS: PARTIAL_SYNCING_SUPPORTED_BLOCKS
[1735] Fix | Delete
});
[1736] Fix | Delete
[1737] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/patterns/build-module/index.js
[1738] Fix | Delete
/**
[1739] Fix | Delete
* Internal dependencies
[1740] Fix | Delete
*/
[1741] Fix | Delete
[1742] Fix | Delete
[1743] Fix | Delete
[1744] Fix | Delete
(window.wp = window.wp || {}).patterns = __webpack_exports__;
[1745] Fix | Delete
/******/ })()
[1746] Fix | Delete
;
[1747] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function