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: element.js
* property is included in this set or value is zero.
[1500] Fix | Delete
*
[1501] Fix | Delete
* Generated via:
[1502] Fix | Delete
*
[1503] Fix | Delete
* Object.entries( document.createElement( 'div' ).style )
[1504] Fix | Delete
* .filter( ( [ key ] ) => (
[1505] Fix | Delete
* ! /^(webkit|ms|moz)/.test( key ) &&
[1506] Fix | Delete
* ( e.style[ key ] = 10 ) &&
[1507] Fix | Delete
* e.style[ key ] === '10'
[1508] Fix | Delete
* ) )
[1509] Fix | Delete
* .map( ( [ key ] ) => key )
[1510] Fix | Delete
* .sort();
[1511] Fix | Delete
*
[1512] Fix | Delete
* @type {Set<string>}
[1513] Fix | Delete
*/
[1514] Fix | Delete
const CSS_PROPERTIES_SUPPORTS_UNITLESS = new Set(['animation', 'animationIterationCount', 'baselineShift', 'borderImageOutset', 'borderImageSlice', 'borderImageWidth', 'columnCount', 'cx', 'cy', 'fillOpacity', 'flexGrow', 'flexShrink', 'floodOpacity', 'fontWeight', 'gridColumnEnd', 'gridColumnStart', 'gridRowEnd', 'gridRowStart', 'lineHeight', 'opacity', 'order', 'orphans', 'r', 'rx', 'ry', 'shapeImageThreshold', 'stopOpacity', 'strokeDasharray', 'strokeDashoffset', 'strokeMiterlimit', 'strokeOpacity', 'strokeWidth', 'tabSize', 'widows', 'x', 'y', 'zIndex', 'zoom']);
[1515] Fix | Delete
[1516] Fix | Delete
/**
[1517] Fix | Delete
* Returns true if the specified string is prefixed by one of an array of
[1518] Fix | Delete
* possible prefixes.
[1519] Fix | Delete
*
[1520] Fix | Delete
* @param {string} string String to check.
[1521] Fix | Delete
* @param {string[]} prefixes Possible prefixes.
[1522] Fix | Delete
*
[1523] Fix | Delete
* @return {boolean} Whether string has prefix.
[1524] Fix | Delete
*/
[1525] Fix | Delete
function hasPrefix(string, prefixes) {
[1526] Fix | Delete
return prefixes.some(prefix => string.indexOf(prefix) === 0);
[1527] Fix | Delete
}
[1528] Fix | Delete
[1529] Fix | Delete
/**
[1530] Fix | Delete
* Returns true if the given prop name should be ignored in attributes
[1531] Fix | Delete
* serialization, or false otherwise.
[1532] Fix | Delete
*
[1533] Fix | Delete
* @param {string} attribute Attribute to check.
[1534] Fix | Delete
*
[1535] Fix | Delete
* @return {boolean} Whether attribute should be ignored.
[1536] Fix | Delete
*/
[1537] Fix | Delete
function isInternalAttribute(attribute) {
[1538] Fix | Delete
return 'key' === attribute || 'children' === attribute;
[1539] Fix | Delete
}
[1540] Fix | Delete
[1541] Fix | Delete
/**
[1542] Fix | Delete
* Returns the normal form of the element's attribute value for HTML.
[1543] Fix | Delete
*
[1544] Fix | Delete
* @param {string} attribute Attribute name.
[1545] Fix | Delete
* @param {*} value Non-normalized attribute value.
[1546] Fix | Delete
*
[1547] Fix | Delete
* @return {*} Normalized attribute value.
[1548] Fix | Delete
*/
[1549] Fix | Delete
function getNormalAttributeValue(attribute, value) {
[1550] Fix | Delete
switch (attribute) {
[1551] Fix | Delete
case 'style':
[1552] Fix | Delete
return renderStyle(value);
[1553] Fix | Delete
}
[1554] Fix | Delete
return value;
[1555] Fix | Delete
}
[1556] Fix | Delete
/**
[1557] Fix | Delete
* This is a map of all SVG attributes that have dashes. Map(lower case prop => dashed lower case attribute).
[1558] Fix | Delete
* We need this to render e.g strokeWidth as stroke-width.
[1559] Fix | Delete
*
[1560] Fix | Delete
* List from: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute.
[1561] Fix | Delete
*/
[1562] Fix | Delete
const SVG_ATTRIBUTE_WITH_DASHES_LIST = ['accentHeight', 'alignmentBaseline', 'arabicForm', 'baselineShift', 'capHeight', 'clipPath', 'clipRule', 'colorInterpolation', 'colorInterpolationFilters', 'colorProfile', 'colorRendering', 'dominantBaseline', 'enableBackground', 'fillOpacity', 'fillRule', 'floodColor', 'floodOpacity', 'fontFamily', 'fontSize', 'fontSizeAdjust', 'fontStretch', 'fontStyle', 'fontVariant', 'fontWeight', 'glyphName', 'glyphOrientationHorizontal', 'glyphOrientationVertical', 'horizAdvX', 'horizOriginX', 'imageRendering', 'letterSpacing', 'lightingColor', 'markerEnd', 'markerMid', 'markerStart', 'overlinePosition', 'overlineThickness', 'paintOrder', 'panose1', 'pointerEvents', 'renderingIntent', 'shapeRendering', 'stopColor', 'stopOpacity', 'strikethroughPosition', 'strikethroughThickness', 'strokeDasharray', 'strokeDashoffset', 'strokeLinecap', 'strokeLinejoin', 'strokeMiterlimit', 'strokeOpacity', 'strokeWidth', 'textAnchor', 'textDecoration', 'textRendering', 'underlinePosition', 'underlineThickness', 'unicodeBidi', 'unicodeRange', 'unitsPerEm', 'vAlphabetic', 'vHanging', 'vIdeographic', 'vMathematical', 'vectorEffect', 'vertAdvY', 'vertOriginX', 'vertOriginY', 'wordSpacing', 'writingMode', 'xmlnsXlink', 'xHeight'].reduce((map, attribute) => {
[1563] Fix | Delete
// The keys are lower-cased for more robust lookup.
[1564] Fix | Delete
map[attribute.toLowerCase()] = attribute;
[1565] Fix | Delete
return map;
[1566] Fix | Delete
}, {});
[1567] Fix | Delete
[1568] Fix | Delete
/**
[1569] Fix | Delete
* This is a map of all case-sensitive SVG attributes. Map(lowercase key => proper case attribute).
[1570] Fix | Delete
* The keys are lower-cased for more robust lookup.
[1571] Fix | Delete
* Note that this list only contains attributes that contain at least one capital letter.
[1572] Fix | Delete
* Lowercase attributes don't need mapping, since we lowercase all attributes by default.
[1573] Fix | Delete
*/
[1574] Fix | Delete
const CASE_SENSITIVE_SVG_ATTRIBUTES = ['allowReorder', 'attributeName', 'attributeType', 'autoReverse', 'baseFrequency', 'baseProfile', 'calcMode', 'clipPathUnits', 'contentScriptType', 'contentStyleType', 'diffuseConstant', 'edgeMode', 'externalResourcesRequired', 'filterRes', 'filterUnits', 'glyphRef', 'gradientTransform', 'gradientUnits', 'kernelMatrix', 'kernelUnitLength', 'keyPoints', 'keySplines', 'keyTimes', 'lengthAdjust', 'limitingConeAngle', 'markerHeight', 'markerUnits', 'markerWidth', 'maskContentUnits', 'maskUnits', 'numOctaves', 'pathLength', 'patternContentUnits', 'patternTransform', 'patternUnits', 'pointsAtX', 'pointsAtY', 'pointsAtZ', 'preserveAlpha', 'preserveAspectRatio', 'primitiveUnits', 'refX', 'refY', 'repeatCount', 'repeatDur', 'requiredExtensions', 'requiredFeatures', 'specularConstant', 'specularExponent', 'spreadMethod', 'startOffset', 'stdDeviation', 'stitchTiles', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'surfaceScale', 'systemLanguage', 'tableValues', 'targetX', 'targetY', 'textLength', 'viewBox', 'viewTarget', 'xChannelSelector', 'yChannelSelector'].reduce((map, attribute) => {
[1575] Fix | Delete
// The keys are lower-cased for more robust lookup.
[1576] Fix | Delete
map[attribute.toLowerCase()] = attribute;
[1577] Fix | Delete
return map;
[1578] Fix | Delete
}, {});
[1579] Fix | Delete
[1580] Fix | Delete
/**
[1581] Fix | Delete
* This is a map of all SVG attributes that have colons.
[1582] Fix | Delete
* Keys are lower-cased and stripped of their colons for more robust lookup.
[1583] Fix | Delete
*/
[1584] Fix | Delete
const SVG_ATTRIBUTES_WITH_COLONS = ['xlink:actuate', 'xlink:arcrole', 'xlink:href', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type', 'xml:base', 'xml:lang', 'xml:space', 'xmlns:xlink'].reduce((map, attribute) => {
[1585] Fix | Delete
map[attribute.replace(':', '').toLowerCase()] = attribute;
[1586] Fix | Delete
return map;
[1587] Fix | Delete
}, {});
[1588] Fix | Delete
[1589] Fix | Delete
/**
[1590] Fix | Delete
* Returns the normal form of the element's attribute name for HTML.
[1591] Fix | Delete
*
[1592] Fix | Delete
* @param {string} attribute Non-normalized attribute name.
[1593] Fix | Delete
*
[1594] Fix | Delete
* @return {string} Normalized attribute name.
[1595] Fix | Delete
*/
[1596] Fix | Delete
function getNormalAttributeName(attribute) {
[1597] Fix | Delete
switch (attribute) {
[1598] Fix | Delete
case 'htmlFor':
[1599] Fix | Delete
return 'for';
[1600] Fix | Delete
case 'className':
[1601] Fix | Delete
return 'class';
[1602] Fix | Delete
}
[1603] Fix | Delete
const attributeLowerCase = attribute.toLowerCase();
[1604] Fix | Delete
if (CASE_SENSITIVE_SVG_ATTRIBUTES[attributeLowerCase]) {
[1605] Fix | Delete
return CASE_SENSITIVE_SVG_ATTRIBUTES[attributeLowerCase];
[1606] Fix | Delete
} else if (SVG_ATTRIBUTE_WITH_DASHES_LIST[attributeLowerCase]) {
[1607] Fix | Delete
return paramCase(SVG_ATTRIBUTE_WITH_DASHES_LIST[attributeLowerCase]);
[1608] Fix | Delete
} else if (SVG_ATTRIBUTES_WITH_COLONS[attributeLowerCase]) {
[1609] Fix | Delete
return SVG_ATTRIBUTES_WITH_COLONS[attributeLowerCase];
[1610] Fix | Delete
}
[1611] Fix | Delete
return attributeLowerCase;
[1612] Fix | Delete
}
[1613] Fix | Delete
[1614] Fix | Delete
/**
[1615] Fix | Delete
* Returns the normal form of the style property name for HTML.
[1616] Fix | Delete
*
[1617] Fix | Delete
* - Converts property names to kebab-case, e.g. 'backgroundColor' → 'background-color'
[1618] Fix | Delete
* - Leaves custom attributes alone, e.g. '--myBackgroundColor' → '--myBackgroundColor'
[1619] Fix | Delete
* - Converts vendor-prefixed property names to -kebab-case, e.g. 'MozTransform' → '-moz-transform'
[1620] Fix | Delete
*
[1621] Fix | Delete
* @param {string} property Property name.
[1622] Fix | Delete
*
[1623] Fix | Delete
* @return {string} Normalized property name.
[1624] Fix | Delete
*/
[1625] Fix | Delete
function getNormalStylePropertyName(property) {
[1626] Fix | Delete
if (property.startsWith('--')) {
[1627] Fix | Delete
return property;
[1628] Fix | Delete
}
[1629] Fix | Delete
if (hasPrefix(property, ['ms', 'O', 'Moz', 'Webkit'])) {
[1630] Fix | Delete
return '-' + paramCase(property);
[1631] Fix | Delete
}
[1632] Fix | Delete
return paramCase(property);
[1633] Fix | Delete
}
[1634] Fix | Delete
[1635] Fix | Delete
/**
[1636] Fix | Delete
* Returns the normal form of the style property value for HTML. Appends a
[1637] Fix | Delete
* default pixel unit if numeric, not a unitless property, and not zero.
[1638] Fix | Delete
*
[1639] Fix | Delete
* @param {string} property Property name.
[1640] Fix | Delete
* @param {*} value Non-normalized property value.
[1641] Fix | Delete
*
[1642] Fix | Delete
* @return {*} Normalized property value.
[1643] Fix | Delete
*/
[1644] Fix | Delete
function getNormalStylePropertyValue(property, value) {
[1645] Fix | Delete
if (typeof value === 'number' && 0 !== value && !CSS_PROPERTIES_SUPPORTS_UNITLESS.has(property)) {
[1646] Fix | Delete
return value + 'px';
[1647] Fix | Delete
}
[1648] Fix | Delete
return value;
[1649] Fix | Delete
}
[1650] Fix | Delete
[1651] Fix | Delete
/**
[1652] Fix | Delete
* Serializes a React element to string.
[1653] Fix | Delete
*
[1654] Fix | Delete
* @param {import('react').ReactNode} element Element to serialize.
[1655] Fix | Delete
* @param {Object} [context] Context object.
[1656] Fix | Delete
* @param {Object} [legacyContext] Legacy context object.
[1657] Fix | Delete
*
[1658] Fix | Delete
* @return {string} Serialized element.
[1659] Fix | Delete
*/
[1660] Fix | Delete
function renderElement(element, context, legacyContext = {}) {
[1661] Fix | Delete
if (null === element || undefined === element || false === element) {
[1662] Fix | Delete
return '';
[1663] Fix | Delete
}
[1664] Fix | Delete
if (Array.isArray(element)) {
[1665] Fix | Delete
return renderChildren(element, context, legacyContext);
[1666] Fix | Delete
}
[1667] Fix | Delete
switch (typeof element) {
[1668] Fix | Delete
case 'string':
[1669] Fix | Delete
return (0,external_wp_escapeHtml_namespaceObject.escapeHTML)(element);
[1670] Fix | Delete
case 'number':
[1671] Fix | Delete
return element.toString();
[1672] Fix | Delete
}
[1673] Fix | Delete
const {
[1674] Fix | Delete
type,
[1675] Fix | Delete
props
[1676] Fix | Delete
} = /** @type {{type?: any, props?: any}} */
[1677] Fix | Delete
element;
[1678] Fix | Delete
switch (type) {
[1679] Fix | Delete
case external_React_namespaceObject.StrictMode:
[1680] Fix | Delete
case external_React_namespaceObject.Fragment:
[1681] Fix | Delete
return renderChildren(props.children, context, legacyContext);
[1682] Fix | Delete
case RawHTML:
[1683] Fix | Delete
const {
[1684] Fix | Delete
children,
[1685] Fix | Delete
...wrapperProps
[1686] Fix | Delete
} = props;
[1687] Fix | Delete
return renderNativeComponent(!Object.keys(wrapperProps).length ? null : 'div', {
[1688] Fix | Delete
...wrapperProps,
[1689] Fix | Delete
dangerouslySetInnerHTML: {
[1690] Fix | Delete
__html: children
[1691] Fix | Delete
}
[1692] Fix | Delete
}, context, legacyContext);
[1693] Fix | Delete
}
[1694] Fix | Delete
switch (typeof type) {
[1695] Fix | Delete
case 'string':
[1696] Fix | Delete
return renderNativeComponent(type, props, context, legacyContext);
[1697] Fix | Delete
case 'function':
[1698] Fix | Delete
if (type.prototype && typeof type.prototype.render === 'function') {
[1699] Fix | Delete
return renderComponent(type, props, context, legacyContext);
[1700] Fix | Delete
}
[1701] Fix | Delete
return renderElement(type(props, legacyContext), context, legacyContext);
[1702] Fix | Delete
}
[1703] Fix | Delete
switch (type && type.$$typeof) {
[1704] Fix | Delete
case Provider.$$typeof:
[1705] Fix | Delete
return renderChildren(props.children, props.value, legacyContext);
[1706] Fix | Delete
case Consumer.$$typeof:
[1707] Fix | Delete
return renderElement(props.children(context || type._currentValue), context, legacyContext);
[1708] Fix | Delete
case ForwardRef.$$typeof:
[1709] Fix | Delete
return renderElement(type.render(props), context, legacyContext);
[1710] Fix | Delete
}
[1711] Fix | Delete
return '';
[1712] Fix | Delete
}
[1713] Fix | Delete
[1714] Fix | Delete
/**
[1715] Fix | Delete
* Serializes a native component type to string.
[1716] Fix | Delete
*
[1717] Fix | Delete
* @param {?string} type Native component type to serialize, or null if
[1718] Fix | Delete
* rendering as fragment of children content.
[1719] Fix | Delete
* @param {Object} props Props object.
[1720] Fix | Delete
* @param {Object} [context] Context object.
[1721] Fix | Delete
* @param {Object} [legacyContext] Legacy context object.
[1722] Fix | Delete
*
[1723] Fix | Delete
* @return {string} Serialized element.
[1724] Fix | Delete
*/
[1725] Fix | Delete
function renderNativeComponent(type, props, context, legacyContext = {}) {
[1726] Fix | Delete
let content = '';
[1727] Fix | Delete
if (type === 'textarea' && props.hasOwnProperty('value')) {
[1728] Fix | Delete
// Textarea children can be assigned as value prop. If it is, render in
[1729] Fix | Delete
// place of children. Ensure to omit so it is not assigned as attribute
[1730] Fix | Delete
// as well.
[1731] Fix | Delete
content = renderChildren(props.value, context, legacyContext);
[1732] Fix | Delete
const {
[1733] Fix | Delete
value,
[1734] Fix | Delete
...restProps
[1735] Fix | Delete
} = props;
[1736] Fix | Delete
props = restProps;
[1737] Fix | Delete
} else if (props.dangerouslySetInnerHTML && typeof props.dangerouslySetInnerHTML.__html === 'string') {
[1738] Fix | Delete
// Dangerous content is left unescaped.
[1739] Fix | Delete
content = props.dangerouslySetInnerHTML.__html;
[1740] Fix | Delete
} else if (typeof props.children !== 'undefined') {
[1741] Fix | Delete
content = renderChildren(props.children, context, legacyContext);
[1742] Fix | Delete
}
[1743] Fix | Delete
if (!type) {
[1744] Fix | Delete
return content;
[1745] Fix | Delete
}
[1746] Fix | Delete
const attributes = renderAttributes(props);
[1747] Fix | Delete
if (SELF_CLOSING_TAGS.has(type)) {
[1748] Fix | Delete
return '<' + type + attributes + '/>';
[1749] Fix | Delete
}
[1750] Fix | Delete
return '<' + type + attributes + '>' + content + '</' + type + '>';
[1751] Fix | Delete
}
[1752] Fix | Delete
[1753] Fix | Delete
/** @typedef {import('react').ComponentType} ComponentType */
[1754] Fix | Delete
[1755] Fix | Delete
/**
[1756] Fix | Delete
* Serializes a non-native component type to string.
[1757] Fix | Delete
*
[1758] Fix | Delete
* @param {ComponentType} Component Component type to serialize.
[1759] Fix | Delete
* @param {Object} props Props object.
[1760] Fix | Delete
* @param {Object} [context] Context object.
[1761] Fix | Delete
* @param {Object} [legacyContext] Legacy context object.
[1762] Fix | Delete
*
[1763] Fix | Delete
* @return {string} Serialized element
[1764] Fix | Delete
*/
[1765] Fix | Delete
function renderComponent(Component, props, context, legacyContext = {}) {
[1766] Fix | Delete
const instance = new ( /** @type {import('react').ComponentClass} */
[1767] Fix | Delete
Component)(props, legacyContext);
[1768] Fix | Delete
if (typeof
[1769] Fix | Delete
// Ignore reason: Current prettier reformats parens and mangles type assertion
[1770] Fix | Delete
// prettier-ignore
[1771] Fix | Delete
/** @type {{getChildContext?: () => unknown}} */
[1772] Fix | Delete
instance.getChildContext === 'function') {
[1773] Fix | Delete
Object.assign(legacyContext, /** @type {{getChildContext?: () => unknown}} */instance.getChildContext());
[1774] Fix | Delete
}
[1775] Fix | Delete
const html = renderElement(instance.render(), context, legacyContext);
[1776] Fix | Delete
return html;
[1777] Fix | Delete
}
[1778] Fix | Delete
[1779] Fix | Delete
/**
[1780] Fix | Delete
* Serializes an array of children to string.
[1781] Fix | Delete
*
[1782] Fix | Delete
* @param {import('react').ReactNodeArray} children Children to serialize.
[1783] Fix | Delete
* @param {Object} [context] Context object.
[1784] Fix | Delete
* @param {Object} [legacyContext] Legacy context object.
[1785] Fix | Delete
*
[1786] Fix | Delete
* @return {string} Serialized children.
[1787] Fix | Delete
*/
[1788] Fix | Delete
function renderChildren(children, context, legacyContext = {}) {
[1789] Fix | Delete
let result = '';
[1790] Fix | Delete
children = Array.isArray(children) ? children : [children];
[1791] Fix | Delete
for (let i = 0; i < children.length; i++) {
[1792] Fix | Delete
const child = children[i];
[1793] Fix | Delete
result += renderElement(child, context, legacyContext);
[1794] Fix | Delete
}
[1795] Fix | Delete
return result;
[1796] Fix | Delete
}
[1797] Fix | Delete
[1798] Fix | Delete
/**
[1799] Fix | Delete
* Renders a props object as a string of HTML attributes.
[1800] Fix | Delete
*
[1801] Fix | Delete
* @param {Object} props Props object.
[1802] Fix | Delete
*
[1803] Fix | Delete
* @return {string} Attributes string.
[1804] Fix | Delete
*/
[1805] Fix | Delete
function renderAttributes(props) {
[1806] Fix | Delete
let result = '';
[1807] Fix | Delete
for (const key in props) {
[1808] Fix | Delete
const attribute = getNormalAttributeName(key);
[1809] Fix | Delete
if (!(0,external_wp_escapeHtml_namespaceObject.isValidAttributeName)(attribute)) {
[1810] Fix | Delete
continue;
[1811] Fix | Delete
}
[1812] Fix | Delete
let value = getNormalAttributeValue(key, props[key]);
[1813] Fix | Delete
[1814] Fix | Delete
// If value is not of serializable type, skip.
[1815] Fix | Delete
if (!ATTRIBUTES_TYPES.has(typeof value)) {
[1816] Fix | Delete
continue;
[1817] Fix | Delete
}
[1818] Fix | Delete
[1819] Fix | Delete
// Don't render internal attribute names.
[1820] Fix | Delete
if (isInternalAttribute(key)) {
[1821] Fix | Delete
continue;
[1822] Fix | Delete
}
[1823] Fix | Delete
const isBooleanAttribute = BOOLEAN_ATTRIBUTES.has(attribute);
[1824] Fix | Delete
[1825] Fix | Delete
// Boolean attribute should be omitted outright if its value is false.
[1826] Fix | Delete
if (isBooleanAttribute && value === false) {
[1827] Fix | Delete
continue;
[1828] Fix | Delete
}
[1829] Fix | Delete
const isMeaningfulAttribute = isBooleanAttribute || hasPrefix(key, ['data-', 'aria-']) || ENUMERATED_ATTRIBUTES.has(attribute);
[1830] Fix | Delete
[1831] Fix | Delete
// Only write boolean value as attribute if meaningful.
[1832] Fix | Delete
if (typeof value === 'boolean' && !isMeaningfulAttribute) {
[1833] Fix | Delete
continue;
[1834] Fix | Delete
}
[1835] Fix | Delete
result += ' ' + attribute;
[1836] Fix | Delete
[1837] Fix | Delete
// Boolean attributes should write attribute name, but without value.
[1838] Fix | Delete
// Mere presence of attribute name is effective truthiness.
[1839] Fix | Delete
if (isBooleanAttribute) {
[1840] Fix | Delete
continue;
[1841] Fix | Delete
}
[1842] Fix | Delete
if (typeof value === 'string') {
[1843] Fix | Delete
value = (0,external_wp_escapeHtml_namespaceObject.escapeAttribute)(value);
[1844] Fix | Delete
}
[1845] Fix | Delete
result += '="' + value + '"';
[1846] Fix | Delete
}
[1847] Fix | Delete
return result;
[1848] Fix | Delete
}
[1849] Fix | Delete
[1850] Fix | Delete
/**
[1851] Fix | Delete
* Renders a style object as a string attribute value.
[1852] Fix | Delete
*
[1853] Fix | Delete
* @param {Object} style Style object.
[1854] Fix | Delete
*
[1855] Fix | Delete
* @return {string} Style attribute value.
[1856] Fix | Delete
*/
[1857] Fix | Delete
function renderStyle(style) {
[1858] Fix | Delete
// Only generate from object, e.g. tolerate string value.
[1859] Fix | Delete
if (!isPlainObject(style)) {
[1860] Fix | Delete
return style;
[1861] Fix | Delete
}
[1862] Fix | Delete
let result;
[1863] Fix | Delete
for (const property in style) {
[1864] Fix | Delete
const value = style[property];
[1865] Fix | Delete
if (null === value || undefined === value) {
[1866] Fix | Delete
continue;
[1867] Fix | Delete
}
[1868] Fix | Delete
if (result) {
[1869] Fix | Delete
result += ';';
[1870] Fix | Delete
} else {
[1871] Fix | Delete
result = '';
[1872] Fix | Delete
}
[1873] Fix | Delete
const normalName = getNormalStylePropertyName(property);
[1874] Fix | Delete
const normalValue = getNormalStylePropertyValue(property, value);
[1875] Fix | Delete
result += normalName + ':' + normalValue;
[1876] Fix | Delete
}
[1877] Fix | Delete
return result;
[1878] Fix | Delete
}
[1879] Fix | Delete
/* harmony default export */ const serialize = (renderElement);
[1880] Fix | Delete
[1881] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/element/build-module/index.js
[1882] Fix | Delete
[1883] Fix | Delete
[1884] Fix | Delete
[1885] Fix | Delete
[1886] Fix | Delete
[1887] Fix | Delete
[1888] Fix | Delete
[1889] Fix | Delete
[1890] Fix | Delete
})();
[1891] Fix | Delete
[1892] Fix | Delete
(window.wp = window.wp || {}).element = __webpack_exports__;
[1893] Fix | Delete
/******/ })()
[1894] Fix | Delete
;
[1895] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function