import CoUxLayoutSidebarItem from '../../../../components/10x/ux/ux-layout-sidebar-item.js'
import CoUxLayoutSidebarItems from '../../../../components/10x/ux/ux-layout-sidebar-items.js'
import EuiBasePage from '../eui-base.po.js';

export default class LayoutSidebar extends EuiBasePage {

  constructor() {
      super();
  }

  /**
   * Returns the index-nth CoUxLayoutSidebarItems from the page
   * @param index - index of the component
   * @returns CoUxLayoutSidebarItems
   */
  layoutSidebarItemsByIndex(index) {
    const layoutSidebarItems1 =  new CoUxLayoutSidebarItems(this.mainContent);
    return layoutSidebarItems1.byIndex(index);
  }
 /**
   * Returns the CoUxLayoutSidebarItems from the page that contains the text
   * @param text - text to be contained
   * @returns CoUxLayoutSidebarItems
   */
  layoutSidebarItemsByTextContains(text) {
    let layoutSidebarItems1 = new CoUxLayoutSidebarItems(this.mainContent);
    return layoutSidebarItems1.byTextContains(text);
  }

  /**
   * Returns the CoUxLayoutSidebarItems from the page that contains the text
   * @param text - text to be contained
   * @returns CoUxLayoutSidebarItems
   */
  layoutSidebarItemsByTextEqualsAndIndex(text, index, normalize=true) {
    let layoutSidebarItems1 = new CoUxLayoutSidebarItems(this.mainContent);
    return layoutSidebarItems1.byTextEqualsAndIndex(text, index, normalize);
  }


  /**
   * Returns the index-nth CoUxLayoutSidebarItem from the page
   * @param index - index of the component
   * @returns CoUxLayoutSidebarItem
   */
   layoutSidebarItemByIndex(index) {
    const layoutSidebarItem1 =  new CoUxLayoutSidebarItem(this.mainContent);
    return layoutSidebarItem1.byIndex(index);
  }
 /**
   * Returns the CoUxLayoutSidebarItem from the page that contains the text
   * @param text - text to be contained
   * @returns CoUxLayoutSidebarItem
   */
  layoutSidebarItemByTextContains(text) {
    let layoutSidebarItem1 = new CoUxLayoutSidebarItem(this.mainContent);
    return layoutSidebarItem1.byTextContains(text);
  }

  /**
   * Returns the CoUxLayoutSidebarItem from the page that contains the text
   * @param text - text to be contained
   * @returns CoUxLayoutSidebarItem
   */
  layoutSidebarItemByTextEqualsAndIndex(text, index, normalize=true) {
    let layoutSidebarItem1 = new CoUxLayoutSidebarItem(this.mainContent);
    return layoutSidebarItem1.byTextEqualsAndIndex(text, index, normalize);
  }
}

