{"version":3,"names":["getElementAtPoint","doc","x","y","elementFromPoint"],"sources":["get-element-at-point.ts"],"sourcesContent":["/**\n * Shadow-DOM-agnostic `document.elementFromPoint` wrapper. Returns `null`\n * when the document doesn't expose the method (non-browser test env).\n *\n * 1:1 port of Base UI React's `packages/react/src/utils/getElementAtPoint.ts`.\n */\nexport function getElementAtPoint(\n\tdoc: Document | null | undefined,\n\tx: number,\n\ty: number,\n): Element | null {\n\treturn typeof doc?.elementFromPoint === \"function\"\n\t\t? doc.elementFromPoint(x, y)\n\t\t: null;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,iBAAiBA,CAChCC,GAAgC,EAChCC,CAAS,EACTC,CAAS,EACQ;EACjB,OAAO,OAAOF,GAAG,EAAEG,gBAAgB,KAAK,UAAU,GAC/CH,GAAG,CAACG,gBAAgB,CAACF,CAAC,EAAEC,CAAC,CAAC,GAC1B,IAAI;AACR","ignoreList":[]}