import { AnimationType as t } from "../render/utils/types.es.js";
import { useDomEvent as u } from "../events/use-dom-event.es.js";
function l(i) {
  var n = i.whileFocus, o = i.visualElement, a = function() {
    var e;
    (e = o.animationState) === null || e === void 0 || e.setActive(t.Focus, !0);
  }, s = function() {
    var e;
    (e = o.animationState) === null || e === void 0 || e.setActive(t.Focus, !1);
  };
  u(o, "focus", n ? a : void 0), u(o, "blur", n ? s : void 0);
}
export {
  l as useFocusGesture
};
//# sourceMappingURL=use-focus-gesture.es.js.map
