"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const correctFocus = require("./correctFocus.js");
var pickFirstFocus = function(nodes) {
  if (nodes[0] && nodes.length > 1) {
    return correctFocus.correctNode(nodes[0], nodes);
  }
  return nodes[0];
};
var pickFocusable = function(nodes, index) {
  if (nodes.length > 1) {
    return nodes.indexOf(correctFocus.correctNode(nodes[index], nodes));
  }
  return index;
};
exports.pickFirstFocus = pickFirstFocus;
exports.pickFocusable = pickFocusable;
//# sourceMappingURL=firstFocus.js.map
