import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
import _regeneratorRuntime from "@babel/runtime/regenerator";
export function getAutoConvertPatternsFromModule(_x) {
  return _getAutoConvertPatternsFromModule.apply(this, arguments);
}
function _getAutoConvertPatternsFromModule() {
  _getAutoConvertPatternsFromModule = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(extensions) {
    var _ref;
    var items;
    return _regeneratorRuntime.wrap(function (_context) {
      while (1) switch (_context.prev = _context.next) {
        case 0:
          _context.next = 1;
          return Promise.all(extensions.map(function (manifest) {
            if (manifest.modules.autoConvert && manifest.modules.autoConvert.url) {
              return manifest.modules.autoConvert.url;
            }
            return [];
          }));
        case 1:
          items = _context.sent;
          return _context.abrupt("return", (_ref = []).concat.apply(_ref, _toConsumableArray(items)));
        case 2:
        case "end":
          return _context.stop();
      }
    }, _callee);
  }));
  return _getAutoConvertPatternsFromModule.apply(this, arguments);
}