{"ast":null,"code":"import { getAllAffectedNodes } from './utils/all-affected';\nimport { toArray } from './utils/array';\nvar focusInFrame = function focusInFrame(frame) {\n  return frame === document.activeElement;\n};\nvar focusInsideIframe = function focusInsideIframe(topNode) {\n  return Boolean(toArray(topNode.querySelectorAll('iframe')).some(function (node) {\n    return focusInFrame(node);\n  }));\n};\nexport var focusInside = function focusInside(topNode) {\n  var activeElement = document && document.activeElement;\n  if (!activeElement || activeElement.dataset && activeElement.dataset.focusGuard) {\n    return false;\n  }\n  return getAllAffectedNodes(topNode).reduce(function (result, node) {\n    return result || node.contains(activeElement) || focusInsideIframe(node);\n  }, false);\n};","map":{"version":3,"names":["getAllAffectedNodes","toArray","focusInFrame","frame","document","activeElement","focusInsideIframe","topNode","Boolean","querySelectorAll","some","node","focusInside","dataset","focusGuard","reduce","result","contains"],"sources":["C:/LDT/DSP_Management/node_modules/focus-lock/dist/es2015/focusInside.js"],"sourcesContent":["import { getAllAffectedNodes } from './utils/all-affected';\nimport { toArray } from './utils/array';\nvar focusInFrame = function (frame) { return frame === document.activeElement; };\nvar focusInsideIframe = function (topNode) {\n    return Boolean(toArray(topNode.querySelectorAll('iframe')).some(function (node) { return focusInFrame(node); }));\n};\nexport var focusInside = function (topNode) {\n    var activeElement = document && document.activeElement;\n    if (!activeElement || (activeElement.dataset && activeElement.dataset.focusGuard)) {\n        return false;\n    }\n    return getAllAffectedNodes(topNode).reduce(function (result, node) { return result || node.contains(activeElement) || focusInsideIframe(node); }, false);\n};\n"],"mappings":"AAAA,SAASA,mBAAmB,QAAQ,sBAAsB;AAC1D,SAASC,OAAO,QAAQ,eAAe;AACvC,IAAIC,YAAY,GAAG,SAAfA,YAAYA,CAAaC,KAAK,EAAE;EAAE,OAAOA,KAAK,KAAKC,QAAQ,CAACC,aAAa;AAAE,CAAC;AAChF,IAAIC,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAaC,OAAO,EAAE;EACvC,OAAOC,OAAO,CAACP,OAAO,CAACM,OAAO,CAACE,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAACC,IAAI,CAAC,UAAUC,IAAI,EAAE;IAAE,OAAOT,YAAY,CAACS,IAAI,CAAC;EAAE,CAAC,CAAC,CAAC;AACpH,CAAC;AACD,OAAO,IAAIC,WAAW,GAAG,SAAdA,WAAWA,CAAaL,OAAO,EAAE;EACxC,IAAIF,aAAa,GAAGD,QAAQ,IAAIA,QAAQ,CAACC,aAAa;EACtD,IAAI,CAACA,aAAa,IAAKA,aAAa,CAACQ,OAAO,IAAIR,aAAa,CAACQ,OAAO,CAACC,UAAW,EAAE;IAC/E,OAAO,KAAK;EAChB;EACA,OAAOd,mBAAmB,CAACO,OAAO,CAAC,CAACQ,MAAM,CAAC,UAAUC,MAAM,EAAEL,IAAI,EAAE;IAAE,OAAOK,MAAM,IAAIL,IAAI,CAACM,QAAQ,CAACZ,aAAa,CAAC,IAAIC,iBAAiB,CAACK,IAAI,CAAC;EAAE,CAAC,EAAE,KAAK,CAAC;AAC5J,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}