<script type="text/javascript">
    ( function ( $ ) {
        var global = this;

        // Namespace.
        global.FS = global.FS || {};

        //region Switches

        function toggleSwitches( $switches, isOn ) {
            $switches
                .toggleClass( 'fs-on', ( null != isOn ? ( true === isOn ) : isOn ) )
                .toggleClass( 'fs-off', ( null != isOn ? ( false === isOn ) : isOn ) );
        }

        function isSwitch( $switch, isOn ) {
            return $switch.hasClass( isOn ? 'fs-on' : 'fs-off' );
        }

        function getSwitchesStates( $switches, isEnabled ) {
            var switchStates = [];
            for ( var i = 0; i < $switches.length; i++ ) {
                switchStates.push( isSwitch( $( $switches[ i ] ), isEnabled ) );
            }

            return switchStates;
        }

        //endregion

        function toggleGroupOptOut( $button, isEnabled ) {
            setOptInLabel( $button, ! isEnabled );

            $button.data( 'is-enabled', isEnabled );
        }

        /**
         * @param {object} $permissionsSection
         *
         * @returns {string[]}
         */
        function getGroupPermissionIDs( $permissionsSection ) {
            var permissions = [];
            $permissionsSection.find( 'ul li').each( function() {
                permissions.push( $( this ).data( 'permission-id' ) );
            });

            return permissions;
        }

        function getGroupOptOutButton( $section ) {
            return $section.find( '.fs-group-opt-out-button' );
        }

        //region Opt-in/out Labels

        function setUpdatingLabel( $button, isEnabled ) {
            $button.text( isEnabled ?
                '<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//e3lighting.com/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://e3lighting.com/post-sitemap.xml</loc>
		<lastmod>2026-04-18T11:26:53+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://e3lighting.com/page-sitemap.xml</loc>
		<lastmod>2022-01-19T22:54:03+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://e3lighting.com/attachment-sitemap.xml</loc>
		<lastmod>2018-01-08T18:28:17+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://e3lighting.com/project-sitemap.xml</loc>
		<lastmod>2017-01-22T20:55:04+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://e3lighting.com/category-sitemap.xml</loc>
		<lastmod>2026-04-18T11:26:53+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://e3lighting.com/project_category-sitemap.xml</loc>
		<lastmod>2017-01-22T20:55:04+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->