{"version":3,"file":"detect-element-overflow-264af79b.js","sources":["../../node_modules/detect-element-overflow/dist/esm/index.js"],"sourcesContent":["function getRect(element) {\n return element.getBoundingClientRect();\n}\nexport default function detectElementOverflow(element, container) {\n return {\n get collidedTop() {\n return getRect(element).top < getRect(container).top;\n },\n get collidedBottom() {\n return getRect(element).bottom > getRect(container).bottom;\n },\n get collidedLeft() {\n return getRect(element).left < getRect(container).left;\n },\n get collidedRight() {\n return getRect(element).right > getRect(container).right;\n },\n get overflowTop() {\n return getRect(container).top - getRect(element).top;\n },\n get overflowBottom() {\n return getRect(element).bottom - getRect(container).bottom;\n },\n get overflowLeft() {\n return getRect(container).left - getRect(element).left;\n },\n get overflowRight() {\n return getRect(element).right - getRect(container).right;\n },\n };\n}\n"],"names":["getRect","element","detectElementOverflow","container"],"mappings":"AAAA,SAASA,EAAQC,EAAS,CACtB,OAAOA,EAAQ,uBACnB,CACe,SAASC,EAAsBD,EAASE,EAAW,CAC9D,MAAO,CACH,IAAI,aAAc,CACd,OAAOH,EAAQC,CAAO,EAAE,IAAMD,EAAQG,CAAS,EAAE,GACpD,EACD,IAAI,gBAAiB,CACjB,OAAOH,EAAQC,CAAO,EAAE,OAASD,EAAQG,CAAS,EAAE,MACvD,EACD,IAAI,cAAe,CACf,OAAOH,EAAQC,CAAO,EAAE,KAAOD,EAAQG,CAAS,EAAE,IACrD,EACD,IAAI,eAAgB,CAChB,OAAOH,EAAQC,CAAO,EAAE,MAAQD,EAAQG,CAAS,EAAE,KACtD,EACD,IAAI,aAAc,CACd,OAAOH,EAAQG,CAAS,EAAE,IAAMH,EAAQC,CAAO,EAAE,GACpD,EACD,IAAI,gBAAiB,CACjB,OAAOD,EAAQC,CAAO,EAAE,OAASD,EAAQG,CAAS,EAAE,MACvD,EACD,IAAI,cAAe,CACf,OAAOH,EAAQG,CAAS,EAAE,KAAOH,EAAQC,CAAO,EAAE,IACrD,EACD,IAAI,eAAgB,CAChB,OAAOD,EAAQC,CAAO,EAAE,MAAQD,EAAQG,CAAS,EAAE,KACtD,CACT,CACA","x_google_ignoreList":[0]}