import { useDomEvent as p, addDomEvent as i } from "./use-dom-event.es.js";
import { wrapHandler as n } from "./event-info.es.js";
import { supportsPointerEvents as s, supportsTouchEvents as m, supportsMouseEvents as v } from "./utils.es.js";
var c = {
  pointerdown: "mousedown",
  pointermove: "mousemove",
  pointerup: "mouseup",
  pointercancel: "mousecancel",
  pointerover: "mouseover",
  pointerout: "mouseout",
  pointerenter: "mouseenter",
  pointerleave: "mouseleave"
}, a = {
  pointerdown: "touchstart",
  pointermove: "touchmove",
  pointerup: "touchend",
  pointercancel: "touchcancel"
};
function u(e) {
  return s() ? e : m() ? a[e] : v() ? c[e] : e;
}
function l(e, o, t, r) {
  return i(e, u(o), n(t, o === "pointerdown"), r);
}
function w(e, o, t, r) {
  return p(e, u(o), t && n(t, o === "pointerdown"), r);
}
export {
  l as addPointerEvent,
  w as usePointerEvent
};
//# sourceMappingURL=use-pointer-event.es.js.map
