{"ast":null,"code":"/**\n * Recursively traverse up the tree to check whether the provided child node\n * is the parent or a descendant of it.\n *\n * @param parent - Element to find\n * @param child - Element to test against parent\n */\nvar _isNodeOrChild = function isNodeOrChild(parent, child) {\n  if (!child) {\n    return false;\n  } else if (parent === child) {\n    return true;\n  } else {\n    return _isNodeOrChild(parent, child.parentElement);\n  }\n};\nexport { _isNodeOrChild as isNodeOrChild };","map":{"version":3,"names":["isNodeOrChild","parent","child","parentElement"],"sources":["C:/LDT/DSP_Management/node_modules/framer-motion/dist/es/gestures/utils/is-node-or-child.js"],"sourcesContent":["/**\n * Recursively traverse up the tree to check whether the provided child node\n * is the parent or a descendant of it.\n *\n * @param parent - Element to find\n * @param child - Element to test against parent\n */\nvar isNodeOrChild = function (parent, child) {\n    if (!child) {\n        return false;\n    }\n    else if (parent === child) {\n        return true;\n    }\n    else {\n        return isNodeOrChild(parent, child.parentElement);\n    }\n};\n\nexport { isNodeOrChild };\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAIA,cAAa,GAAG,SAAhBA,aAAaA,CAAaC,MAAM,EAAEC,KAAK,EAAE;EACzC,IAAI,CAACA,KAAK,EAAE;IACR,OAAO,KAAK;EAChB,CAAC,MACI,IAAID,MAAM,KAAKC,KAAK,EAAE;IACvB,OAAO,IAAI;EACf,CAAC,MACI;IACD,OAAOF,cAAa,CAACC,MAAM,EAAEC,KAAK,CAACC,aAAa,CAAC;EACrD;AACJ,CAAC;AAED,SAASH,cAAa,IAAbA,aAAa","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}