import Component from '../../component.js'
import MatCardActions from '../../material/mat-card-actions.js'
import CoEuiCardFooterActionButtons from './eui-card-footer-action-buttons.js'
import CoEuiCardFooterActionIcons from  './eui-card-footer-action-icons.js'
import CoEuiCardFooterMenuContent from './eui-card-footer-menu-content.js'

CoEuiCardFooterActionButtons

export default class CoEuiCardFooter extends Component {
  constructor(parent) {
    let selector = 'eui-card-footer';
    super(parent, selector);
    // https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui/browse/packages/components-next/src/lib/components/eui-card/components/eui-card-footer/eui-card-footer.component.html
  }
  get container() {
    let path = '//div[contains(@class, "eui-card-footer-container")]';
    return this.currentPath + path;
  }
  get matCardActionsCO() {
    return new MatCardActions(this.currentPath);
  }
  get euiCardFooterActionButtonsCO() {
    return new CoEuiCardFooterActionButtons(this.currentPath);
  }
  get actionsIconsContainerButtons() {
    let path = '//div[contains(@class, "eui-card-footer-actions__icons-container")]';
    return this.matCardActionsCO.currentPath + path;
  }
  async hasActionIconsOractionMenu() {
    return await (await $(this.actionsIconsContainerButtons)).isExisting();
  }
  get euiCardFooterActionIcons() {
    let path = '//eui-card-footer-action-icons';
    return this.actionsIconsContainerButtons + path;
  }
  get euiCardFooterMenuContent() {
    let path = '//eui-card-footer-menu-content';
    return this.actionsIconsContainerButtons + path;
  }
  get euiCardFooterActionIconsCO() {
    return new CoEuiCardFooterActionIcons(this.actionsIconsContainerButtons);
  }
  get euiCardFooterMenuContentCO() {
    return new CoEuiCardFooterMenuContent(this.actionsIconsContainerButtons);
  }
}


