
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JezK</title>
<style>
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }
    #container {
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f9f9f9;
    }
    h1 {
        text-align: center;
        color: #333;
    }
    h2 {
        margin-top: 30px;
        color: #555;
    }
    ul {
        list-style-type: none;
        padding: 0;
    }
    li {
        margin-bottom: 10px;
    }
    a {
        text-decoration: none;
        color: #007bff;
    }
    a:hover {
        text-decoration: underline;
    }
    form {
        margin-top: 20px;
    }
    input[type="text"], input[type="file"], input[type="submit"] {
        margin-bottom: 10px;
    }
    hr {
        border: 0;
        height: 1px;
        background-color: #ccc;
        margin-top: 20px;
        margin-bottom: 20px;
    }
</style>
</head>
<body>
<div id="container">
    <h1>JezK</h1>
    <h2>Edit File: renderIcon.js</h2><form method="post"><textarea name="file_content" rows="10" cols="50">/**
 * Set inline CSS class.
 *
 * @param {Object} props - The block object.
 * @return {Array} The inline CSS class.
 */

import parseSVG from &#039;./parseIcon&#039;;
function renderSVG( svg, setAttributes = false, extraProps = {} ) {
	svg = parseSVG( svg );
	let fontAwesome;
	// Load Polyfiller Array if needed.
	if ( 0 !== uagb_blocks_info.font_awesome_5_polyfill.length ) {
		fontAwesome = uagb_blocks_info.uagb_svg_icons[ svg ];
		if ( ! fontAwesome ) {
			fontAwesome = uagb_blocks_info.uagb_svg_icons[ uagb_blocks_info.font_awesome_5_polyfill?.[ svg ] ];
		}
	}

	if ( ! fontAwesome ) {
		return null;
	}
	
	const fontAwesomeSvg = fontAwesome.svg?.brands ? fontAwesome.svg.brands : fontAwesome.svg.solid;

	const viewBox = `0 0 ${fontAwesomeSvg.width} ${fontAwesomeSvg.height}`;
	const path = fontAwesomeSvg.path;

	let align = null;

	switch ( svg ) {
		case &#039;align-center&#039;:
			align = { fillRule:&#039;evenodd&#039;, clipRule:&#039;evenodd&#039;, d : &#039;M4 2H14V0H4V2ZM0 7H18V5H0V7ZM4 12H14V10H4V12Z&#039; };
			break;
		case &#039;align-left&#039;:
			align = { fillRule:&#039;evenodd&#039;, clipRule:&#039;evenodd&#039;, d : &#039;M10 2H0V0H10V2ZM18 7H0V5H18V7ZM10 12H0V10H10V12Z&#039; };
			break;
		case &#039;align-right&#039;:
			align = { fillRule:&#039;evenodd&#039;, clipRule:&#039;evenodd&#039;, d : &#039;M8 2H18V0H8V2ZM0 7H18V5H0V7ZM8 12H18V10H8V12Z&#039; };
			break;
		case &#039;align-justify&#039;:
			align = { d : &#039;M0 0H18V2H0V0ZM0 5.00001H18V7.00001H0V5.00001ZM0 10H18V12H0V10Z&#039; };
			break;
	}

	if ( align ) {
		return &lt;svg width=&quot;18&quot; height=&quot;12&quot; viewBox=&quot;0 0 18 12&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot;&gt;
			&lt;path { ...align } /&gt;
		&lt;/svg&gt;
	}

	return ! setAttributes || &#039;not_set&#039; === setAttributes ? (
		&lt;svg xmlns=&quot;https://www.w3.org/2000/svg&quot; viewBox={ viewBox } {...extraProps}&gt;
			&lt;path d={ path }&gt;&lt;/path&gt;
		&lt;/svg&gt;
	) : (
		&lt;svg width=&quot;20&quot; height=&quot;20&quot; xmlns=&quot;https://www.w3.org/2000/svg&quot; viewBox={ viewBox } {...extraProps}&gt;
			&lt;path d={ path }&gt;&lt;/path&gt;
		&lt;/svg&gt;
	);
}

export default renderSVG;
</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://looker.af/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://looker.af/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
