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

export default class CoUxBlockDocument extends Component {

    constructor(parent) {
      let selector = 'eui-block-document';
      super(parent, selector);
      //https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui/browse/packages/components/src/lib/ux-components/ux-block-document/ux-block-document.component.html?at=support/10.x
    }
    get blockDocumentLoading() {
      let path = '//div[contains(@class,"eui-block-document__loader")]';
      return this.currentPath + path;
    }
    async isBlocked() {
      return await (await $(this.currentPath + '/ancestor-or-self::eui-block-document[contains(@class, "eui-block-document--blocked")]')).isExisting();
    }
}


