{"mappings":";sEAOM,SAAUA,EAAiBC,EAAmB,CAChD,MAAO,CACH,MAAO,CACH,EAAGA,EAAM,MACT,EAAGA,EAAM,KACZ,EAET,CAEO,IAAMC,EACRC,GACAF,GACGG,EAAiBH,CAAK,GAAKE,EAAQF,EAAOD,EAAiBC,CAAK,CAAC","names":["extractEventInfo","event","addPointerInfo","handler","isPrimaryPointer"],"sources":["../esm/npm/framer-motion@12.38.0/node_modules/framer-motion/src/events/event-info.ts"],"sourcesContent":["import { EventInfo, isPrimaryPointer } from \"motion-dom\"\n\nexport type EventListenerWithPointInfo = (\n    e: PointerEvent,\n    info: EventInfo\n) =\u003e void\n\nexport function extractEventInfo(event: PointerEvent): EventInfo {\n    return {\n        point: {\n            x: event.pageX,\n            y: event.pageY,\n        },\n    }\n}\n\nexport const addPointerInfo =\n    (handler: EventListenerWithPointInfo): EventListener =\u003e\n    (event: PointerEvent) =\u003e\n        isPrimaryPointer(event) \u0026\u0026 handler(event, extractEventInfo(event))\n"],"version":3}
