{"version":3,"file":"getAllInputs.mjs","names":["isFocusableInput","getAllInputs","document","Array","prototype","slice","call","forms","reduce","accumulator","form","concat","filter"],"sources":["../../../../src/utilities/form/final-form-scroll/getAllInputs.js"],"sourcesContent":["import isFocusableInput from './isFocusableInput';\n\nconst getAllInputs = () => {\n  if (typeof document === 'undefined') {\n    return [];\n  }\n  return Array.prototype.slice\n    .call(document.forms)\n    .reduce(\n      (accumulator, form) =>\n        accumulator.concat(\n          Array.prototype.slice.call(form).filter(isFocusableInput)\n        ),\n      []\n    );\n};\n\nexport default getAllInputs;\n"],"mappings":";;AAEA,MAAMC,qBAAqB;AACzB,KAAI,OAAOC,aAAa,YACtB,QAAO,EAAE;AAEX,QAAOC,MAAMC,UAAUC,MACpBC,KAAKJ,SAASK,MAAM,CACpBC,QACEC,aAAaC,SACZD,YAAYE,OACVR,MAAMC,UAAUC,MAAMC,KAAKI,KAAK,CAACE,OAAOZ,iBAC1C,CAAC,EACH,EACF,CAAC"}