import Component  from '../component.js'
import CoEuiLanguageSelector from './eui-language-selector.js'
import CoEuiHeaderLogo from './eui-header-logo.js'
import CoEuiHeaderEnvironment from './eui-header-environment.js'
import CoEuiHeaderApp from './eui-header-app.js'
import CoEuiHeaderUserProfile from './eui-header-user-profile.js'

export default class CoEuiHeader extends Component {
    constructor(parent) {
      let selector = 'eui-header';
      super(parent, selector);
      //https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui/browse/packages/components/layout/eui-header/header.component.html
    }
    get logoWrapper() {
      let path = '//div[contains(@class,"eui-header-logo-wrapper")]';
      return this.currentPath + path;
    }
    get euiHeaderLogoCO() {
      return new CoEuiHeaderLogo(this.logoWrapper);
    }
    get euiHeaderEnvironmentCO() {
      return new CoEuiHeaderEnvironment(this.logoWrapper);
    }
    get euiHeaderAppCO() {
      return new CoEuiHeaderApp(this.currentPath);
    }
    get rightContent() {
      let path = '//div[contains(@class,"eui-header-right-content")]';
      return this.currentPath + path;
    }
    get euiHeaderUserProfileCO() {
      return new CoEuiHeaderUserProfile(this.rightContent);
    }
    get euiLanguageSelectorCO() {
      return new CoEuiLanguageSelector(this.rightContent);
    }
}


