import Component from '../../component.js'

export default class CoUxLayoutNavBarLeftActionsItemSidebarToggle extends Component {
  constructor(parent) {
    let selector = 'ux-layout-nav-bar-left-action-item-sidebar-toggle';
    super(parent, selector);
    //https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui/browse/packages/components/src/lib/ux-components/layout/ux-layout-app-shell/components/ux-layout-nav-bar/ux-layout-nav-bar-left-action-item-sidebar-toggle.component.ts?at=support/10.x
  }
  get actionItem(){
    return this.currentPath + '//div[contains(@class, "ux-layout-nav-bar__action-item") and contains(@class, "d-lg-block")]';
  }
  get toggle(){
    return this.actionItem + '//a[contains(@class, "ux-layout-nav-bar__action-item-icon-toggle")]';
  }
  get toggleIcon(){
    return this.toggle + '//span[contains(@class, "ux-layout-nav-bar__action-item-icon-toggle-icon")]';
  }
  get label(){
    return this.currentPath + '//div[contains(@class, "ux-layout-nav-bar__action-item-label")]';
  }
  async hasLabel(){
    return await (await $(this.label)).isExisting();
  }
  
}

