"use strict";

exports.__esModule = true;
exports.MultiInlineCheckboxUniDriver = MultiInlineCheckboxUniDriver;
var _unidriver = require("@wix/design-system/dist/testkit/unidriver");
function MultiInlineCheckboxUniDriver(base, body) {
  const getCheckboxById = id => (0, _unidriver.CheckboxUniDriver)(base.$(`[data-hook="multi-inline-checkbox-${id}"]`), body);
  const getCheckboxAt = index => (0, _unidriver.CheckboxUniDriver)(base.$$(':scope > *').get(index), body);
  const checkOptions = async ids => {
    await Promise.all(ids.map(id => getCheckboxById(id).click()));
  };
  const getCheckboxesCount = () => base.$$(':scope > *').count();
  return {
    checkOptions,
    getCheckboxAt,
    getCheckboxById,
    getCheckboxesCount
  };
}
//# sourceMappingURL=MultiInlineCheckbox.uni.driver.js.map