import Component  from '../component.js'

export default class CoUxAdateTag extends Component {
    constructor(parent) {
      let selector = 'div[@data-e2e="ux-a-date-tag"]';
      super(parent, selector);
    }
    get dateContainer() {
      let path = '/ancestor:://span[contains(@class, "ux-a-date-tag-container")]';
      return this.currentPath + path;
    }
    get dateTag() {
      let path = '//div[@data-e2e = "ux-a-date-tag"]';
      return this.dateContainer + path;
    }
    get dateDay() {
      let path = '//div[contains(@class, "ux-a-date-tag__d")]';
      return this.dateTag + path;
    }
    get dateMonth() {
      let path = '//div[contains(@class, "ux-a-date-tag__m")]';
      return this.dateTag + path;
    }
    get dateYear() {
      let path = '//div[contains(@class, "ux-a-date-tag__y")]';
      return this.dateTag + path;
    }
    get dateSubLabel() {
      let path = '//div[contains(@class, "ux-a-date-tag__sub-label")]';
      return this.dateContainer + path;
    }
}

