{"ast":null,"code":"import { toArray } from './array';\nimport { isVisibleCached, notHiddenInput } from './is';\nimport { orderByTabIndex } from './tabOrder';\nimport { getFocusables, getParentAutofocusables } from './tabUtils';\nexport var filterFocusable = function filterFocusable(nodes, visibilityCache) {\n  return toArray(nodes).filter(function (node) {\n    return isVisibleCached(visibilityCache, node);\n  }).filter(function (node) {\n    return notHiddenInput(node);\n  });\n};\nexport var getTabbableNodes = function getTabbableNodes(topNodes, visibilityCache, withGuards) {\n  return orderByTabIndex(filterFocusable(getFocusables(topNodes, withGuards), visibilityCache), true, withGuards);\n};\nexport var getAllTabbableNodes = function getAllTabbableNodes(topNodes, visibilityCache) {\n  return orderByTabIndex(filterFocusable(getFocusables(topNodes), visibilityCache), false);\n};\nexport var parentAutofocusables = function parentAutofocusables(topNode, visibilityCache) {\n  return filterFocusable(getParentAutofocusables(topNode), visibilityCache);\n};","map":{"version":3,"names":["toArray","isVisibleCached","notHiddenInput","orderByTabIndex","getFocusables","getParentAutofocusables","filterFocusable","nodes","visibilityCache","filter","node","getTabbableNodes","topNodes","withGuards","getAllTabbableNodes","parentAutofocusables","topNode"],"sources":["C:/ldt/LDT/management/node_modules/focus-lock/dist/es2015/utils/DOMutils.js"],"sourcesContent":["import { toArray } from './array';\nimport { isVisibleCached, notHiddenInput } from './is';\nimport { orderByTabIndex } from './tabOrder';\nimport { getFocusables, getParentAutofocusables } from './tabUtils';\nexport var filterFocusable = function (nodes, visibilityCache) {\n    return toArray(nodes)\n        .filter(function (node) { return isVisibleCached(visibilityCache, node); })\n        .filter(function (node) { return notHiddenInput(node); });\n};\nexport var getTabbableNodes = function (topNodes, visibilityCache, withGuards) {\n    return orderByTabIndex(filterFocusable(getFocusables(topNodes, withGuards), visibilityCache), true, withGuards);\n};\nexport var getAllTabbableNodes = function (topNodes, visibilityCache) {\n    return orderByTabIndex(filterFocusable(getFocusables(topNodes), visibilityCache), false);\n};\nexport var parentAutofocusables = function (topNode, visibilityCache) {\n    return filterFocusable(getParentAutofocusables(topNode), visibilityCache);\n};\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,SAAS;AACjC,SAASC,eAAe,EAAEC,cAAc,QAAQ,MAAM;AACtD,SAASC,eAAe,QAAQ,YAAY;AAC5C,SAASC,aAAa,EAAEC,uBAAuB,QAAQ,YAAY;AACnE,OAAO,IAAIC,eAAe,GAAG,SAAlBA,eAAeA,CAAaC,KAAK,EAAEC,eAAe,EAAE;EAC3D,OAAOR,OAAO,CAACO,KAAK,CAAC,CAChBE,MAAM,CAAC,UAAUC,IAAI,EAAE;IAAE,OAAOT,eAAe,CAACO,eAAe,EAAEE,IAAI,CAAC;EAAE,CAAC,CAAC,CAC1ED,MAAM,CAAC,UAAUC,IAAI,EAAE;IAAE,OAAOR,cAAc,CAACQ,IAAI,CAAC;EAAE,CAAC,CAAC;AACjE,CAAC;AACD,OAAO,IAAIC,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAaC,QAAQ,EAAEJ,eAAe,EAAEK,UAAU,EAAE;EAC3E,OAAOV,eAAe,CAACG,eAAe,CAACF,aAAa,CAACQ,QAAQ,EAAEC,UAAU,CAAC,EAAEL,eAAe,CAAC,EAAE,IAAI,EAAEK,UAAU,CAAC;AACnH,CAAC;AACD,OAAO,IAAIC,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAaF,QAAQ,EAAEJ,eAAe,EAAE;EAClE,OAAOL,eAAe,CAACG,eAAe,CAACF,aAAa,CAACQ,QAAQ,CAAC,EAAEJ,eAAe,CAAC,EAAE,KAAK,CAAC;AAC5F,CAAC;AACD,OAAO,IAAIO,oBAAoB,GAAG,SAAvBA,oBAAoBA,CAAaC,OAAO,EAAER,eAAe,EAAE;EAClE,OAAOF,eAAe,CAACD,uBAAuB,CAACW,OAAO,CAAC,EAAER,eAAe,CAAC;AAC7E,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}