{"version":3,"file":"forceBlur.cjs","sources":["../../src/dom/forceBlur.js"],"sourcesContent":["/* global document */\n\nconst timeoutAsync = function (ms) {\n    return new Promise((resolve) => { setTimeout(resolve, ms); });\n};\n\nconst forceBlur = async function () {\n    const input = document.createElement('input');\n    input.style.position = 'absolute';\n    input.style.visibility = 'hidden';\n    input.style.opacity = '0';\n\n    document.body.append(input);\n    input.focus();\n    await timeoutAsync(0);\n    document.body.remove(input);\n};\n\nexport { forceBlur };\n"],"names":["async","input","document","createElement","style","position","visibility","opacity","body","append","focus","ms","Promise","resolve","setTimeout","remove"],"mappings":";kBAMkBA,iBACd,MAAMC,MAAQC,SAASC,cAAc;AACrCF,MAAMG,MAAMC,SAAW;AACvBJ,MAAMG,MAAME,WAAa;AACzBL,MAAMG,MAAMG,QAAU;AAEtBL,SAASM,KAAKC,OAAOR;AACrBA,MAAMS;MAXqBC,GAYR,EAXZ,IAAIC,QAASC,UAAcC,WAAWD,QAASF;AADrC,IAAUA;AAa3BT,SAASM,KAAKO,OAAOd,MACzB"}