'use strict';

const index = require('./index-6377956f.js');

const appGlobalScript = () => {
  const themeResolver = (elm) => {
    const theme = 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-3eb95f7b.js.map