{"mappings":";;AAAA;;;;;;;;;;CAUC;AAIM,SAAS,0CAAiB,IAAa,EAAE,gBAA0B;IACxE,IAAI,iBAA4B,EAAE;IAClC,IAAI,OAAO,SAAS,gBAAgB,IAAI,SAAS,eAAe;IAEhE,GAAG;QACD,IAAI,CAAA,GAAA,yCAAW,EAAE,MAAM,mBACrB,eAAe,IAAI,CAAC;QAEtB,OAAO,KAAK,aAAa;IAC3B,QAAS,QAAQ,SAAS,MAAM;IAEhC,OAAO;AACT","sources":["packages/react-aria/src/utils/getScrollParents.ts"],"sourcesContent":["/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {isScrollable} from './isScrollable';\n\nexport function getScrollParents(node: Element, checkForOverflow?: boolean): Element[] {\n  let parentElements: Element[] = [];\n  let root = document.scrollingElement || document.documentElement;\n\n  do {\n    if (isScrollable(node, checkForOverflow)) {\n      parentElements.push(node);\n    }\n    node = node.parentElement as Element;\n  } while (node && node !== root);\n\n  return parentElements;\n}\n"],"names":[],"version":3,"file":"getScrollParents.mjs.map"}