import Component  from '../component.js'

export default class CoUxBlockDocument extends Component {

    constructor(parent) {
      let selector = 'div[@data-e2e="ux-block-document"]';
      super(parent, selector);
    }
    async isBlocked() {
      let st = await (await this.element()).getAttribute('style');
      if (st.includes('display: none')) {
         return false;
      } else if (st.includes('display: block')) {
         return true;
      } else {
         throw new Error('ux-block-document component object needs to be revised, ux-block-document is missing style');
      }
    }
}

