"use strict";

exports.__esModule = true;
exports.MultiDocumentViewUniDriver = MultiDocumentViewUniDriver;
var _unidriver = require("../../../../unidriver");
function MultiDocumentViewUniDriver(base, _body) {
  const tags = () => base.$$('[data-hook="cell-multi-document-tag"]');
  const overflow = () => base.$('[data-hook="tag-list-overflow-chip"]');
  return {
    ...(0, _unidriver.baseUniDriverFactory)(base),
    hasTags: async () => (await tags().count()) > 0,
    getTagsCount: () => tags().count(),
    isEmpty: async () => !(await base.$('[data-hook="cell-multi-document-tags"]').exists()),
    hasOverflowChip: () => overflow().exists(),
    getOverflowChipText: async () => (await overflow().text()) ?? ''
  };
}
//# sourceMappingURL=View.uni.driver.js.map