{"ast":null,"code":"import { getFocusMerge } from './focusMerge';\nexport var focusOn = function focusOn(target) {\n  target.focus();\n  if ('contentWindow' in target && target.contentWindow) {\n    target.contentWindow.focus();\n  }\n};\nvar guardCount = 0;\nvar lockDisabled = false;\nexport var setFocus = function setFocus(topNode, lastNode) {\n  var focusable = getFocusMerge(topNode, lastNode);\n  if (lockDisabled) {\n    return;\n  }\n  if (focusable) {\n    if (guardCount > 2) {\n      console.error('FocusLock: focus-fighting detected. Only one focus management system could be active. ' + 'See https://github.com/theKashey/focus-lock/#focus-fighting');\n      lockDisabled = true;\n      setTimeout(function () {\n        lockDisabled = false;\n      }, 1);\n      return;\n    }\n    guardCount++;\n    focusOn(focusable.node);\n    guardCount--;\n  }\n};","map":{"version":3,"names":["getFocusMerge","focusOn","target","focus","contentWindow","guardCount","lockDisabled","setFocus","topNode","lastNode","focusable","console","error","setTimeout","node"],"sources":["C:/ldt/LDT/management/node_modules/focus-lock/dist/es2015/setFocus.js"],"sourcesContent":["import { getFocusMerge } from './focusMerge';\nexport var focusOn = function (target) {\n    target.focus();\n    if ('contentWindow' in target && target.contentWindow) {\n        target.contentWindow.focus();\n    }\n};\nvar guardCount = 0;\nvar lockDisabled = false;\nexport var setFocus = function (topNode, lastNode) {\n    var focusable = getFocusMerge(topNode, lastNode);\n    if (lockDisabled) {\n        return;\n    }\n    if (focusable) {\n        if (guardCount > 2) {\n            console.error('FocusLock: focus-fighting detected. Only one focus management system could be active. ' +\n                'See https://github.com/theKashey/focus-lock/#focus-fighting');\n            lockDisabled = true;\n            setTimeout(function () {\n                lockDisabled = false;\n            }, 1);\n            return;\n        }\n        guardCount++;\n        focusOn(focusable.node);\n        guardCount--;\n    }\n};\n"],"mappings":"AAAA,SAASA,aAAa,QAAQ,cAAc;AAC5C,OAAO,IAAIC,OAAO,GAAG,SAAVA,OAAOA,CAAaC,MAAM,EAAE;EACnCA,MAAM,CAACC,KAAK,CAAC,CAAC;EACd,IAAI,eAAe,IAAID,MAAM,IAAIA,MAAM,CAACE,aAAa,EAAE;IACnDF,MAAM,CAACE,aAAa,CAACD,KAAK,CAAC,CAAC;EAChC;AACJ,CAAC;AACD,IAAIE,UAAU,GAAG,CAAC;AAClB,IAAIC,YAAY,GAAG,KAAK;AACxB,OAAO,IAAIC,QAAQ,GAAG,SAAXA,QAAQA,CAAaC,OAAO,EAAEC,QAAQ,EAAE;EAC/C,IAAIC,SAAS,GAAGV,aAAa,CAACQ,OAAO,EAAEC,QAAQ,CAAC;EAChD,IAAIH,YAAY,EAAE;IACd;EACJ;EACA,IAAII,SAAS,EAAE;IACX,IAAIL,UAAU,GAAG,CAAC,EAAE;MAChBM,OAAO,CAACC,KAAK,CAAC,wFAAwF,GAClG,6DAA6D,CAAC;MAClEN,YAAY,GAAG,IAAI;MACnBO,UAAU,CAAC,YAAY;QACnBP,YAAY,GAAG,KAAK;MACxB,CAAC,EAAE,CAAC,CAAC;MACL;IACJ;IACAD,UAAU,EAAE;IACZJ,OAAO,CAACS,SAAS,CAACI,IAAI,CAAC;IACvBT,UAAU,EAAE;EAChB;AACJ,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}