"use strict";

exports.__esModule = true;
exports.ArchiveFieldModalUniDriver = ArchiveFieldModalUniDriver;
var _unidriver = require("@wix/design-system/dist/testkit/unidriver");
function ArchiveFieldModalUniDriver(_base, body) {
  const getArchiveFieldModal = () => (0, _unidriver.MessageModalLayoutUniDriver)(body.$('[data-hook="archive-custom-field-modal"]'), body);
  const exists = () => getArchiveFieldModal().exists();
  const clickConfirm = () => getArchiveFieldModal().getPrimaryButtonDriver().then(driver => driver.click());
  const clickClose = () => getArchiveFieldModal().clickCloseButton();
  const getModalTitle = () => getArchiveFieldModal().getTitleText();
  const getModalBody = () => body.$('[data-hook="archive-custom-field-body"]').text();
  return {
    exists,
    clickConfirm,
    clickClose,
    getModalTitle,
    getModalBody
  };
}
//# sourceMappingURL=ArchiveFieldModal.uni.driver.js.map