import Component from '../component.js';
import { elementAttributeContains } from '../../core/utils.js';
import DivComponent from '../div.js';

export default class CoEuiBlockDocument 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/eui-block-document/eui-block-document.component.html
  }
  get loaderCO() {
    return new DivComponent(this.currentPath).addPredicateClassContains('eui-block-document__loader');
  }
  async isBlocked() {
    return await elementAttributeContains(this.currentPath, 'class', 'eui-block-document--blocked');
  }
}

