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

export default class CoEuiBlockContent extends Component {
    constructor(parent) {
      let selector = 'eui-block-content';
      super(parent, selector);
      //https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui/browse/packages/components-next/src/lib/components/eui-block-content/eui-block-content.component.html?at=refs%2Fheads%2Fsupport%2F10.x
    }
    get wrapper() {
      const path = '//div[contains(@class,"eui-block-content__wrapper")]';
      return this.currentPath + path;
    }
    async isBlocked() {
      return await elementAttributeContains(this.currentPath, 'class', 'eui-block-content--blocked');
    }
}


