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

export default class CoUxCarouselItemsSummaryIndicators extends Component {
    constructor(parent) {
      let selector = 'span[contains(@class,"ux-carousel-items__summary-indicators-item")]';
      super(parent, selector);
      //https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui/browse/packages/components/src/lib/ux-components/ux-carousel-item/ux-carousel-items.component.htmlhttps://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui/browse/packages/components/src/lib/ux-components/ux-carousel-item/ux-carousel-items.component.html?at=support/10.x
    }
    async isActive() {
      return await elementAttributeContains(this.currentPath, 'class', 'eui-u-color-primary');
    }
    async isInactive() {
      return await elementAttributeContains(this.currentPath, 'class', 'eui-u-color-grey-light');
    }
}


