Your Name 1912bcd25b
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
chore: sync all remaining local workspace changes
2026-05-08 11:26:57 +08:00

36 lines
963 B
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 9791d1c834ee18fb.a3b8628b5c.js
* Module id: 121583
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e, t, n) => {
t.exports = function () {
var e = document.getSelection();
if (!e.rangeCount) return function () {};
for (var t = document.activeElement, n = [], r = 0; r < e.rangeCount; r++)
n.push(e.getRangeAt(r));
switch (t.tagName.toUpperCase()) {
case "INPUT":
case "TEXTAREA":
t.blur();
break;
default:
t = null;
}
return (
e.removeAllRanges(),
function () {
"Caret" === e.type && e.removeAllRanges(),
e.rangeCount ||
n.forEach(function (t) {
e.addRange(t);
}),
t && t.focus();
}
);
};
};
export default moduleFactory;