'use strict';

const index = require('./index-420e0ca1.js');

const appGlobalScript = () => {
    const themeResolver = (elm) => {
        const theme = window.eclTheme || elm.theme || elm.getAttribute('theme');
        if (theme) {
            return theme;
        }
        else if (!elm.parentElement) {
            return 'ec';
        }
        else {
            return themeResolver(elm.parentElement);
        }
    };
    index.setMode((elm) => {
        return themeResolver(elm);
    });
};

const globalScripts = appGlobalScript;

exports.globalScripts = globalScripts;

//# sourceMappingURL=app-globals-712c151e.js.map